[issue45326] Unexpected TypeError with type alias+issubclass+ABC

2022-02-27 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45326] Unexpected TypeError with type alias+issubclass+ABC

2022-02-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: This error was added in https://bugs.python.org/issue33018 . See some discussion on that issue. Note that first arg needs to be a type (i.e. instance of `type`) to avoid this error: [ins] In [41]: class C(ABC):0 [ins] In [42]: issubclass(dict, C) Out[42]:

[issue45326] Unexpected TypeError with type alias+issubclass+ABC

2022-02-23 Thread burrito
Change by burrito : -- nosy: +burrito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45326] Unexpected TypeError with type alias+issubclass+ABC

2021-09-29 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.10, Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45326] Unexpected TypeError with type alias+issubclass+ABC

2021-09-29 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45326] Unexpected TypeError with type alias+issubclass+ABC

2021-09-29 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45326] Unexpected TypeError with type alias+issubclass+ABC

2021-09-29 Thread Dmitry Marakasov
New submission from Dmitry Marakasov : Here's a curious problem. issubclass() check of a type against an ABC-derived class raises TypeError claiming that type is not a class, however inspect.isclass() says it's a class, and issubclass() check against a simple class works fine: ``` from abc