-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Deprecate redundant type checking guard utils #8433
Deprecate redundant type checking guard utils #8433
Conversation
57202bd
to
27f0193
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #8433 +/- ##
==========================================
- Coverage 95.73% 95.72% -0.01%
==========================================
Files 174 174
Lines 18392 18401 +9
==========================================
+ Hits 17607 17614 +7
- Misses 785 787 +2
|
This comment has been minimized.
This comment has been minimized.
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.
Kinda wondering if this should be part of the astroid's node API. It would be conveniant and discoverable.
|
Yeah I remember that, but how are we going to handle control flow ? It seems like this is similar to control flow understanding. And imo it will need to be object oriented instead of functional if we want them to be easy to use (if there was a single function on the node for that we would not have created 3/4 identical functions to solve a single problem?). |
Gotcha. I see how control flow ideas can be similar to |
Anyway, it's going to be a design discussion in astroid later, and we need to deprecate the duplicated functions in any cases. |
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit 9a6039b |
(cherry picked from commit b968fa0)
Type of Changes
Description
Suggesting we backport this to 2.17.x so that we can get the notice out before 3.0.