Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 25, 2024
1 parent 4b5cb06 commit cde8a4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion astroid/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@ def clear_cache(self) -> None:
self.astroid_cache.clear()
# NB: not a new TransformVisitor()
AstroidManager.brain["_transform"].transforms = collections.defaultdict(list)
AstroidManager.brain["_early_transform"].transforms = collections.defaultdict(list)
AstroidManager.brain["_early_transform"].transforms = collections.defaultdict(
list
)

for lru_cache in (
LookupMixIn.lookup,
Expand Down
7 changes: 2 additions & 5 deletions tests/brain/test_gi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# For details: https://github.com/pylint-dev/astroid/blob/main/LICENSE
# Copyright (c) https://github.com/pylint-dev/astroid/blob/main/CONTRIBUTORS.txt

from importlib.util import find_spec
import warnings
from importlib.util import find_spec

import pytest

Expand All @@ -22,8 +22,7 @@ class TestBrainGi:

@staticmethod
def test_import() -> None:
"""Regression test for https://github.com/pylint-dev/astroid/issues/2190
"""
"""Regression test for https://github.com/pylint-dev/astroid/issues/2190"""
src = """
import gi
gi.require_version('Gtk', '3.0')
Expand All @@ -42,5 +41,3 @@ def test_import() -> None:
if attribute_node is Uninferable:
pytest.skip("Gtk3 may not be installed?")
assert isinstance(attribute_node, BoundMethod)


0 comments on commit cde8a4d

Please sign in to comment.