Merge pull request #5575 from bluetech/mypy-initial

Add rudimentary mypy type checking
This commit is contained in:
Anthony Sottile
2019-07-09 08:05:14 -07:00
committed by GitHub
30 changed files with 104 additions and 45 deletions

View File

@@ -265,7 +265,8 @@ class TestRaises:
"""Test current behavior with regard to exceptions via __class__ (#4284)."""
class CrappyClass(Exception):
@property
# Type ignored because it's bypassed intentionally.
@property # type: ignore
def __class__(self):
assert False, "via __class__"