Created
October 28, 2020 07:23
-
-
Save pletnes/c8d8c2a61444766ed87c9022ab94d5b7 to your computer and use it in GitHub Desktop.
Function scope pylint rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Both foo and bar trigger the "blacklisted-name" pylint rule. | |
# Placing a #pylint pragma inside the foo block ensures that only this function is not triggering the rule. | |
def foo(): | |
"""docstr""" | |
# pylint: disable=blacklisted-name | |
a=2 | |
return a | |
def bar(): | |
a=2 | |
return a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment