Fix mypy violations (for mypy-0.711)

This commit is contained in:
Takeshi KOMIYA committed 2019-06-29 01:41:16 +09:00
1 parent bd09f009bf
commit e7b1803a96
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ extras_require = {
'html5lib',
'flake8>=3.5.0',
'flake8-import-order',
'mypy>=0.710',
'mypy>=0.711',
'docutils-stubs',
],
}
+1 -1
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):