Skip to content

Commit 0368a5b

Browse files
Additional callable import fixes
1 parent 7169c29 commit 0368a5b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pylint/pyreverse/inspector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
import os
1414
import traceback
1515
from abc import ABC, abstractmethod
16-
from typing import Callable, Optional
16+
from collections.abc import Callable
17+
from typing import Optional
1718

1819
import astroid
1920
from astroid import nodes

pylint/reporters/ureports/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
from __future__ import annotations
1111

12-
from collections.abc import Iterable, Iterator
13-
from typing import Any, Callable, TypeVar
12+
from collections.abc import Callable, Iterable, Iterator
13+
from typing import Any, TypeVar
1414

1515
from pylint.reporters.ureports.base_writer import BaseWriter
1616

pylint/utils/ast_walker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import sys
88
import traceback
99
from collections import defaultdict
10-
from collections.abc import Sequence
11-
from typing import TYPE_CHECKING, Callable
10+
from collections.abc import Callable, Sequence
11+
from typing import TYPE_CHECKING
1212

1313
from astroid import nodes
1414

0 commit comments

Comments
 (0)