File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 99import sys
1010from collections .abc import Callable
1111from pathlib import Path
12- from typing import Literal , TypeVar
13-
14- if sys .version_info >= (3 , 10 ):
15- from typing import ParamSpec
16- else :
17- from typing_extensions import ParamSpec
12+ from typing import Literal , ParamSpec , TypeVar
1813
1914_P = ParamSpec ("_P" )
2015_ReturnValueT = TypeVar ("_ReturnValueT" , bool , str )
Original file line number Diff line number Diff line change 44
55from __future__ import annotations
66
7- import sys
8- from typing import TYPE_CHECKING , cast
7+ from typing import TYPE_CHECKING , TypeGuard , cast
98
109from astroid import nodes
1110
1615if TYPE_CHECKING :
1716 from pylint .lint import PyLinter
1817
19- if sys .version_info >= (3 , 10 ):
20- from typing import TypeGuard
21- else :
22- from typing_extensions import TypeGuard
23-
2418
2519class CodeStyleChecker (BaseChecker ):
2620 """Checkers that can improve code consistency.
You can’t perform that action at this time.
0 commit comments