[issue38459] typing: Classes that inherit `Generic[...]` indirectly aren't considered generic.

2019-10-13 Thread John Lennon
John Lennon added the comment: BTW I don't mind creating a PR for that issue if there will be an agreement on what is the desired behavior here. -- ___ Python tracker <https://bugs.python.org/issue38

[issue38459] typing: Classes that inherit `Generic[...]` indirectly aren't considered generic.

2019-10-13 Thread John Lennon
John Lennon added the comment: However, if I change the signature to: ```python class SomeImplMapping(GenericMapping[KT, VT]): ``` Everything works just fine. And that's not really clear for me: we already have declared the generic types, we can not change the amount of those arguments

[issue38459] typing: Classes that inherit `Generic[...]` indirectly aren't considered generic.

2019-10-13 Thread John Lennon
New submission from John Lennon : Given the file `example.py` with the following contents: ```python from typing import Generic, TypeVar KT = TypeVar("KT") VT = TypeVar("VT") class GenericMapping(Generic[KT, VT]): pass class SomeImplMapping(Gener