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

"Z454 Found incorrect base class" on Generic classes #459

Closed
sobolevn opened this issue Jan 24, 2019 · 0 comments
Closed

"Z454 Found incorrect base class" on Generic classes #459

sobolevn opened this issue Jan 24, 2019 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sobolevn
Copy link
Member

Bug report

What's wrong

This code raises Z454 Found incorrect base class violation.

from typing import Generic, TypeVar


HandlesType = TypeVar('T')

class Base(Generic[HandlesType]):
    def process(self, pipeline: HandlesType):
        return pipeline

How is that should be

It should work fine. Generic classes with [] are widely used.

System information

I am using 0.7.0.

@sobolevn sobolevn added the bug Something isn't working label Jan 24, 2019
@sobolevn sobolevn self-assigned this Jan 24, 2019
@sobolevn sobolevn added this to the Version 0.7.1 milestone Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant