Skip to content

Conversation

RasmusWL
Copy link
Member

@RasmusWL RasmusWL commented Apr 7, 2020

from unknown import foo, bar
var: Optional['foo'] = None

would not trigger an alert for bar, while the following would.

from unknown import foo, bar
print(foo)

This PR fixes the above inconsistency.

@RasmusWL RasmusWL added the Python label Apr 7, 2020
@RasmusWL RasmusWL requested a review from a team as a code owner April 7, 2020 07:46
@RasmusWL RasmusWL requested review from tausbn and removed request for a team April 7, 2020 07:46
Copy link
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. This looks ready to merge.

@tausbn tausbn merged commit 964a619 into github:master Apr 16, 2020
@RasmusWL RasmusWL deleted the python-unused-import-small-fix branch April 16, 2020 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants