Skip to content

Commit 4c8e046

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f0a834c commit 4c8e046

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pylint/checkers/base/name_checker/checker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ def visit_assignname( # pylint: disable=too-many-branches, too-many-statements
427427

428428
# Check names defined in Assign nodes
429429
elif isinstance(assign_type, (nodes.Assign, nodes.AnnAssign)):
430-
inferred_assign_type = utils.safe_infer(assign_type.value) if assign_type.value else None
430+
inferred_assign_type = (
431+
utils.safe_infer(assign_type.value) if assign_type.value else None
432+
)
431433

432434
# Check TypeVar's and TypeAliases assigned alone or in tuple assignment
433435
if isinstance(node.parent, nodes.Assign):

0 commit comments

Comments
 (0)