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

Please consider making type variable string bounds visible #614

Closed
NeilGirdhar opened this issue Feb 24, 2021 · 2 comments
Closed

Please consider making type variable string bounds visible #614

NeilGirdhar opened this issue Feb 24, 2021 · 2 comments

Comments

@NeilGirdhar
Copy link

from typing import Any, TypeVar

T = TypeVar('T', bound='Any')

def f(x: T):
    pass

Gives:

a.py:1:1 'typing.Any' imported but unused

This causes problems with automatic import removal done by autoflake: PyCQA/autoflake#84.

@asottile
Copy link
Member

already considered and implemented on master

@NeilGirdhar
Copy link
Author

@asottile Hooray! That was fast. Sorry for the noise.

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

No branches or pull requests

2 participants