-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Prevents reaching inner blocks that contains if TYPE_CHECKING
#211
Prevents reaching inner blocks that contains if TYPE_CHECKING
#211
Conversation
2f08dcd
to
8e6b7b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a changelog entry too, thanks!
8e6b7b2
to
2af7193
Compare
if TYPE_CHECKING
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just add a changelog entry and we're good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for your work on this plugin! We're having some problems with returns because we use type guards inside some classes like here which leads in some warnings while building sphinx broking our builds:
This PR fixes that issue, basically when a class object doesn't have the
__globals__
attribute so we basically can callexec
without the globals if the given object doesn't have the mentioned attribute.