0

Warning for isinstance

The warning is: Expected type 'Union[type, Tuple[type, ...]]', got 'Union[str, unicode]' instead.

Am I doing something wrong?

  • I don't think you're doing something wrong, this seems like a problem with pycharm. Or did you redefine `basestring`? And another question: You're using python 2.7, right? – MSeifert Apr 11 '17 at 23:44

1 Answers1

3

This issue is a known bug. Please follow https://youtrack.jetbrains.com/issue/PY-23470

user2235698
  • 7,053
  • 1
  • 19
  • 27