Skip to content

Commit 69dd783

Browse files
Enable pylint's python 3.8 typing checks (deprecated-typing-alias)
1 parent 5d86954 commit 69dd783

File tree

10 files changed

+9
-10
lines changed

10 files changed

+9
-10
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ disable = [
231231
"deprecated-argument",
232232
"deprecated-attribute",
233233
"deprecated-class",
234-
"deprecated-typing-alias",
235234
"disallowed-name", # foo / bar are used often in tests
236235
"duplicate-code",
237236
"else-if-used", # not activated by default, PLR5501 disabled in ruff

src/_pytest/_py/error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
from __future__ import annotations
44

5+
from collections.abc import Callable
56
import errno
67
import os
78
import sys
8-
from typing import Callable
99
from typing import TYPE_CHECKING
1010
from typing import TypeVar
1111

src/_pytest/_py/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from __future__ import annotations
55

66
import atexit
7+
from collections.abc import Callable
78
from contextlib import contextmanager
89
import fnmatch
910
import importlib.util
@@ -23,7 +24,6 @@
2324
from stat import S_ISREG
2425
import sys
2526
from typing import Any
26-
from typing import Callable
2727
from typing import cast
2828
from typing import Literal
2929
from typing import overload

src/_pytest/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from __future__ import annotations
55

6+
from collections.abc import Callable
67
import dataclasses
78
import enum
89
import functools
@@ -13,7 +14,6 @@
1314
from pathlib import Path
1415
import sys
1516
from typing import Any
16-
from typing import Callable
1717
from typing import Final
1818
from typing import NoReturn
1919

src/_pytest/outcomes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
from __future__ import annotations
55

6+
from collections.abc import Callable
67
import sys
78
from typing import Any
8-
from typing import Callable
99
from typing import cast
1010
from typing import NoReturn
1111
from typing import Protocol

src/_pytest/python_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# mypy: allow-untyped-defs
22
from __future__ import annotations
33

4+
from collections.abc import Callable
45
from collections.abc import Collection
56
from collections.abc import Sized
67
from decimal import Decimal
@@ -10,7 +11,6 @@
1011
import re
1112
from types import TracebackType
1213
from typing import Any
13-
from typing import Callable
1414
from typing import cast
1515
from typing import ContextManager
1616
from typing import final

src/_pytest/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
from __future__ import annotations
55

66
import bdb
7+
from collections.abc import Callable
78
import dataclasses
89
import os
910
import sys
1011
import types
11-
from typing import Callable
1212
from typing import cast
1313
from typing import final
1414
from typing import Generic

testing/test_doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# mypy: allow-untyped-defs
22
from __future__ import annotations
33

4+
from collections.abc import Callable
45
import inspect
56
from pathlib import Path
67
import sys
78
import textwrap
8-
from typing import Callable
99

1010
from _pytest.doctest import _get_checker
1111
from _pytest.doctest import _is_main_py

testing/test_mark_expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Callable
3+
from collections.abc import Callable
44
from typing import cast
55

66
from _pytest.mark import MarkMatcher

testing/test_tmpdir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# mypy: allow-untyped-defs
22
from __future__ import annotations
33

4+
from collections.abc import Callable
45
import dataclasses
56
import os
67
from pathlib import Path
78
import stat
89
import sys
9-
from typing import Callable
1010
from typing import cast
1111
import warnings
1212

0 commit comments

Comments
 (0)