John Lennon <enjigglypuf...@gmail.com> 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, 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[...]`).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38459>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to