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

Unimport does not work correctly when there is a nested if statement. #294

Open
Tracked by #272
hakancelikdev opened this issue Jul 5, 2023 · 0 comments
Open
Tracked by #272
Assignees
Labels
bug Something isn't working changelog Changes should be written to the changelog file. test
Milestone

Comments

@hakancelikdev
Copy link
Owner

if sys.version_info < (3, 7):
    if TYPE_CHECKING:

        class ForwardRef:
            def __init__(self, arg: Any):
                pass

            def _eval_type(self, globalns: Any, localns: Any) -> Any:
                pass

    else:
        from typing import _ForwardRef as ForwardRef
else:
    from typing import ForwardRef
@hakancelikdev hakancelikdev added bug Something isn't working changelog Changes should be written to the changelog file. test labels Jul 5, 2023
@hakancelikdev hakancelikdev added this to the 1.0.0 milestone Jul 5, 2023
@hakancelikdev hakancelikdev self-assigned this Jul 5, 2023
This was referenced Jul 5, 2023
@hakancelikdev hakancelikdev modified the milestones: 1.0.0, 1.1.0 Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working changelog Changes should be written to the changelog file. test
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant