File tree 2 files changed +5
-6
lines changed
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:
481
481
self .astroid_cache .clear ()
482
482
# NB: not a new TransformVisitor()
483
483
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
+ )
485
487
486
488
for lru_cache in (
487
489
LookupMixIn .lookup ,
Original file line number Diff line number Diff line change 2
2
# For details: https://github.com/pylint-dev/astroid/blob/main/LICENSE
3
3
# Copyright (c) https://github.com/pylint-dev/astroid/blob/main/CONTRIBUTORS.txt
4
4
5
- from importlib .util import find_spec
6
5
import warnings
6
+ from importlib .util import find_spec
7
7
8
8
import pytest
9
9
@@ -22,8 +22,7 @@ class TestBrainGi:
22
22
23
23
@staticmethod
24
24
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"""
27
26
src = """
28
27
import gi
29
28
gi.require_version('Gtk', '3.0')
@@ -42,5 +41,3 @@ def test_import() -> None:
42
41
if attribute_node is Uninferable :
43
42
pytest .skip ("Gtk3 may not be installed?" )
44
43
assert isinstance (attribute_node , BoundMethod )
45
-
46
-
You can’t perform that action at this time.
0 commit comments