We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da89985 commit b7eeccbCopy full SHA for b7eeccb
pylint/utils/ast_walker.py
@@ -7,7 +7,7 @@
7
import sys
8
import traceback
9
from collections import defaultdict
10
-from collections.abc import Callable, Sequence
+from collections.abc import Callable
11
from typing import TYPE_CHECKING
12
13
from astroid import nodes
@@ -75,8 +75,8 @@ def walk(self, astroid: nodes.NodeNG) -> None:
75
"""
76
cid = astroid.__class__.__name__.lower()
77
78
- visit_events: Sequence[AstCallback] = self.visit_events.get(cid, ())
79
- leave_events: Sequence[AstCallback] = self.leave_events.get(cid, ())
+ visit_events = self.visit_events[cid]
+ leave_events = self.leave_events[cid]
80
81
# pylint: disable = too-many-try-statements
82
try:
0 commit comments