Skip to content

Commit 0703e77

Browse files
Enable pylint's python 3.8 typing checks (deprecated-typing-alias)
1 parent 325fb15 commit 0703e77

21 files changed

+21
-21
lines changed

src/_pytest/_code/code.py

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

44
import ast
5+
from collections.abc import Callable
56
from collections.abc import Iterable
67
from collections.abc import Mapping
78
from collections.abc import Sequence
@@ -21,7 +22,6 @@
2122
from types import FrameType
2223
from types import TracebackType
2324
from typing import Any
24-
from typing import Callable
2525
from typing import ClassVar
2626
from typing import Final
2727
from typing import final

src/_pytest/_io/pprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
from __future__ import annotations
1717

1818
import collections as _collections
19+
from collections.abc import Callable
1920
from collections.abc import Iterator
2021
import dataclasses as _dataclasses
2122
from io import StringIO as _StringIO
2223
import re
2324
import types as _types
2425
from typing import Any
25-
from typing import Callable
2626
from typing import IO
2727

2828

src/_pytest/assertion/rewrite.py

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

55
import ast
66
from collections import defaultdict
7+
from collections.abc import Callable
78
from collections.abc import Iterable
89
from collections.abc import Iterator
910
from collections.abc import Sequence
@@ -22,7 +23,6 @@
2223
import sys
2324
import tokenize
2425
import types
25-
from typing import Callable
2626
from typing import IO
2727
from typing import TYPE_CHECKING
2828

src/_pytest/assertion/util.py

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

66
import collections.abc
7+
from collections.abc import Callable
78
from collections.abc import Iterable
89
from collections.abc import Mapping
910
from collections.abc import Sequence
1011
from collections.abc import Set as AbstractSet
1112
import os
1213
import pprint
1314
from typing import Any
14-
from typing import Callable
1515
from typing import Literal
1616
from typing import Protocol
1717
from unicodedata import normalize

src/_pytest/config/__init__.py

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

66
import argparse
77
import collections.abc
8+
from collections.abc import Callable
89
from collections.abc import Generator
910
from collections.abc import Iterable
1011
from collections.abc import Iterator
@@ -25,7 +26,6 @@
2526
import types
2627
from types import FunctionType
2728
from typing import Any
28-
from typing import Callable
2929
from typing import cast
3030
from typing import Final
3131
from typing import final

src/_pytest/config/argparsing.py

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

44
import argparse
5+
from collections.abc import Callable
56
from collections.abc import Mapping
67
from collections.abc import Sequence
78
import os
89
from typing import Any
9-
from typing import Callable
1010
from typing import cast
1111
from typing import final
1212
from typing import Literal

src/_pytest/debugging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from __future__ import annotations
66

77
import argparse
8+
from collections.abc import Callable
89
from collections.abc import Generator
910
import functools
1011
import sys
1112
import types
1213
from typing import Any
13-
from typing import Callable
1414
import unittest
1515

1616
from _pytest import outcomes

src/_pytest/doctest.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 bdb
7+
from collections.abc import Callable
78
from collections.abc import Generator
89
from collections.abc import Iterable
910
from collections.abc import Sequence
@@ -18,7 +19,6 @@
1819
import traceback
1920
import types
2021
from typing import Any
21-
from typing import Callable
2222
from typing import TYPE_CHECKING
2323
import warnings
2424

src/_pytest/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from collections import defaultdict
66
from collections import deque
77
from collections import OrderedDict
8+
from collections.abc import Callable
89
from collections.abc import Generator
910
from collections.abc import Iterable
1011
from collections.abc import Iterator
@@ -20,7 +21,6 @@
2021
import sys
2122
import types
2223
from typing import Any
23-
from typing import Callable
2424
from typing import cast
2525
from typing import Final
2626
from typing import final

src/_pytest/junitxml.py

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

1111
from __future__ import annotations
1212

13+
from collections.abc import Callable
1314
from datetime import datetime
1415
from datetime import timezone
1516
import functools
1617
import os
1718
import platform
1819
import re
1920
from re import Match
20-
from typing import Callable
2121
import xml.etree.ElementTree as ET
2222

2323
from _pytest import nodes

0 commit comments

Comments
 (0)