Skip to content

Commit

Permalink
Disable by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Sep 26, 2024
1 parent 7644ff2 commit 70c836f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ def _has_locals_call_after_node(stmt: nodes.NodeNG, scope: nodes.FunctionDef) ->
"`%s` used only for typechecking but imported outside of a typechecking block",
"unguarded-typing-import",
"Used when an import is used only for typechecking but imported outside of a typechecking block.",
{"default_enabled": False},
),
"W0621": (
"Redefining name %r from outer scope (line %s)",
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/u/unguarded_typing_import.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[MESSAGES CONTROL]
enable = unguarded-typing-import

0 comments on commit 70c836f

Please sign in to comment.