Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow omitting redundant Generic[T] base class #302

Closed
gvanrossum opened this issue Jul 17, 2014 · 1 comment
Closed

Allow omitting redundant Generic[T] base class #302

gvanrossum opened this issue Jul 17, 2014 · 1 comment

Comments

@gvanrossum
Copy link
Member

Currently I have to write:

class LazyList(Iterable[T], Generic[T]):

I'd like to be able to write just:

class LazyList(Iterable[T]):
@JukkaL JukkaL removed the hackmypy label Jul 25, 2014
@JukkaL JukkaL changed the title Allow omitting redundant AbstractGeneric[T] base class Allow omitting redundant Generic[T] base class Feb 22, 2015
@JukkaL
Copy link
Collaborator

JukkaL commented Feb 22, 2015

The issue is still open, but the latest mypy reversion uses just Generic instead of AbstractGeneric.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants