remove pycharm type hint assertion