This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author John Lennon
Recipients John Lennon
Date 2019-10-13.08:41:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570956111.83.0.204301552028.issue38459@roundup.psfhosted.org>
In-reply-to
Content
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, so why do we have to pass the same generic parameters again?

And even if that's the designed way to do things, I would expect the first example to fail not because of the type substitution, but for deriving the `GenericMapping` without generic type arguments provided (as if I'll try to derive `Generic` instead of `Generic[...]`).
History
Date User Action Args
2019-10-13 08:41:51John Lennonsetrecipients: + John Lennon
2019-10-13 08:41:51John Lennonsetmessageid: <1570956111.83.0.204301552028.issue38459@roundup.psfhosted.org>
2019-10-13 08:41:51John Lennonlinkissue38459 messages
2019-10-13 08:41:51John Lennoncreate