Fix mypy violations (for mypy-0.711)

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

View File

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

View File

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