Skip to content

Commit bf04d87

Browse files
committed
remove qname check
1 parent 607338f commit bf04d87

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pylint/checkers/base/basic_error_checker.py

-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from pylint.checkers.utils import infer_all
2020
from pylint.interfaces import HIGH, INFERENCE
2121

22-
ABC_METACLASSES = {"_py_abc.ABCMeta", "abc.ABCMeta"} # Python 3.7+,
2322
# List of methods which can be redefined
2423
REDEFINABLE_METHODS = frozenset(("__module__",))
2524
TYPING_FORWARD_REF_QNAME = "typing.ForwardRef"
@@ -498,9 +497,6 @@ def _check_inferred_class_is_abstract(
498497

499498
return
500499

501-
if metaclass.qname() not in ABC_METACLASSES:
502-
return
503-
504500
if _new_without_super(inferred):
505501
# A class that implements `__new__` without calling `super().__new__(cls)`
506502
# should not emit the message.

0 commit comments

Comments
 (0)