Skip to content

Commit 9be85ae

Browse files
meta.__abstractmethods__: explicitly check if __isabstractmethod__ is True
1 parent 5477db2 commit 9be85ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modeled/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def abcnames():
174174
obj = getattr(cls, name, None)
175175
if obj is None:
176176
continue
177-
if getattr(obj, '__isabstractmethod__', False):
177+
if getattr(obj, '__isabstractmethod__', False) is True:
178178
yield name
179179

180180
return tuple(abcnames())

0 commit comments

Comments
 (0)