File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -481,7 +481,9 @@ def clear_cache(self) -> None:
481481 self .astroid_cache .clear ()
482482 # NB: not a new TransformVisitor()
483483 AstroidManager .brain ["_transform" ].transforms = collections .defaultdict (list )
484- AstroidManager .brain ["_early_transform" ].transforms = collections .defaultdict (list )
484+ AstroidManager .brain ["_early_transform" ].transforms = collections .defaultdict (
485+ list
486+ )
485487
486488 for lru_cache in (
487489 LookupMixIn .lookup ,
Original file line number Diff line number Diff line change 22# For details: https://github.com/pylint-dev/astroid/blob/main/LICENSE
33# Copyright (c) https://github.com/pylint-dev/astroid/blob/main/CONTRIBUTORS.txt
44
5- from importlib .util import find_spec
65import warnings
6+ from importlib .util import find_spec
77
88import pytest
99
@@ -22,8 +22,7 @@ class TestBrainGi:
2222
2323 @staticmethod
2424 def test_import () -> None :
25- """Regression test for https://github.com/pylint-dev/astroid/issues/2190
26- """
25+ """Regression test for https://github.com/pylint-dev/astroid/issues/2190"""
2726 src = """
2827 import gi
2928 gi.require_version('Gtk', '3.0')
@@ -42,5 +41,3 @@ def test_import() -> None:
4241 if attribute_node is Uninferable :
4342 pytest .skip ("Gtk3 may not be installed?" )
4443 assert isinstance (attribute_node , BoundMethod )
45-
46-
You can’t perform that action at this time.
0 commit comments