Closed as not planned
Closed as not planned
Description
Bug report
Reproduction
import abc
class A:
def __getattr__(self, name: str):
return A()
class B(abc.ABC):
a: A = A()
B() # TypeError: Can't instantiate abstract class B with abstract method aa = A() is not a @abc.abstractmethod. I think abc just have some check if hasattr(B.a, '__is_abstractmethod__'), but this raise an error because A.__getattr__ dynamically create __is_abstractmethod__ on the fly
Your environment
- CPython versions tested on: 3.11.1

