-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Fix annotations for statement method #2366
Fix annotations for statement method #2366
Conversation
144cb73
to
f26a645
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2366 +/- ##
=======================================
Coverage 92.86% 92.86%
=======================================
Files 94 94
Lines 11072 11072
=======================================
Hits 10282 10282
Misses 790 790
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Daniël proposed it here:
|
Hmm 🤔 Just interesting that we need to import |
I agree with @cdce8p if we use the import in pylint it should be public (even if it's only for typing I guess). |
I think my main rationale was that it is an implementation detail and ideally should be exported as a However, I burned out quite a bit on trying to fully type |
(cherry picked from commit 3e8f21d)
Description
Statement
isn't exported formastroid.nodes
(anymore ?). All other annotations were updated to use_base_nodes.Statement
. It seems these two were missed.--
Side note
Any particular reason the
base_nodes
module should be considered private, i.e. prefixed with_
? Probably missed that discussion.