Skip to content

Instantly share code, notes, and snippets.

@pletnes
Created October 28, 2020 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pletnes/c8d8c2a61444766ed87c9022ab94d5b7 to your computer and use it in GitHub Desktop.
Save pletnes/c8d8c2a61444766ed87c9022ab94d5b7 to your computer and use it in GitHub Desktop.
Function scope pylint rules
# 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