Skip to content

Commit 472917d

Browse files
pre-commit-ci[bot]ericmarkmartin
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3d7e030 commit 472917d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/stubgenc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def is_classmethod(self, class_info: ClassInfo, name: str, obj: object) -> bool:
556556
raw_lookup: Mapping[str, Any] = getattr(class_info.cls, "__dict__") # noqa: B009
557557
raw_value = raw_lookup.get(name, obj)
558558
classmethod_descriptor = type(int.__dict__["from_bytes"])
559-
return isinstance(raw_value, classmethod) or isinstance(raw_value, classmethod_descriptor)
559+
return isinstance(raw_value, (classmethod, classmethod_descriptor))
560560
else:
561561
return isinstance(inspect.getattr_static(class_info.cls, name), classmethod)
562562

0 commit comments

Comments
 (0)