-
-
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
Deprecate is_typing_guard
and is_sys_guard
#1202
Conversation
@@ -2870,6 +2871,10 @@ def is_sys_guard(self) -> bool: | |||
>>> node.is_sys_guard() | |||
True | |||
""" | |||
warnings.warn( | |||
"The 'is_sys_guard' function is deprecated and will be removed in astroid 3.0.0", |
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.
I would re-add these to pylint
first and tell people about that in the warning. Give them a possibility to keep using the function, although from another place!
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.
Makes sense, good call.
Co-authored-by: Marc Mueller <[email protected]>
I think referring to the changelog/ |
Description
See pylint-dev/pylint#5107 (comment) for context.
Type of Changes
Related Issue
References #1199