Merge pull request #6526 from tk0miya/mypy-0.711

Fix mypy violations (for mypy-0.711)
This commit is contained in:
Takeshi KOMIYA
2019-06-29 01:50:37 +09:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ extras_require = {
'html5lib',
'flake8>=3.5.0',
'flake8-import-order',
'mypy>=0.710',
'mypy>=0.711',
'docutils-stubs',
],
}

View File

@@ -129,7 +129,7 @@ def isenumattribute(x):
def ispartial(obj):
# type: (Any) -> bool
"""Check if the object is partial."""
return isinstance(obj, (partial, partialmethod)) # type: ignore
return isinstance(obj, (partial, partialmethod))
def isclassmethod(obj):