Skip to content

Commit 1d066c5

Browse files
Fix callable import
1 parent 2b1bbed commit 1d066c5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pylint/checkers/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
import numbers
1414
import re
1515
import string
16-
from collections.abc import Iterable, Iterator
16+
from collections.abc import Callable, Iterable, Iterator
1717
from functools import lru_cache, partial
1818
from re import Match
19-
from typing import TYPE_CHECKING, Any, Callable, TypeVar
19+
from typing import TYPE_CHECKING, Any, TypeVar
2020

2121
import astroid.objects
2222
from astroid import TooManyLevelsError, nodes, util

pylint/pyreverse/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
import shutil
1212
import subprocess
1313
import sys
14-
from typing import TYPE_CHECKING, Any, Callable, Optional, Union
14+
from collections.abc import Callable
15+
from typing import TYPE_CHECKING, Any, Optional, Union
1516

1617
import astroid
1718
from astroid import nodes

0 commit comments

Comments
 (0)