File tree 4 files changed +5
-3
lines changed
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change
1
+ Fixed typing compatibility with Python 3.9 or less -- replaced `typing.Self ` with `typing_extensions.Self ` -- by :user: `Avasam `
Original file line number Diff line number Diff line change 44
44
45
45
if TYPE_CHECKING :
46
46
import doctest
47
- from typing import Self
47
+
48
+ from typing_extensions import Self
48
49
49
50
DOCTEST_REPORT_CHOICE_NONE = "none"
50
51
DOCTEST_REPORT_CHOICE_CDIFF = "cdiff"
Original file line number Diff line number Diff line change 43
43
44
44
45
45
if TYPE_CHECKING :
46
- from typing import Self
46
+ from typing_extensions import Self
47
47
48
48
# Imported here due to circular import.
49
49
from _pytest .main import Session
Original file line number Diff line number Diff line change 78
78
79
79
80
80
if TYPE_CHECKING :
81
- from typing import Self
81
+ from typing_extensions import Self
82
82
83
83
84
84
def pytest_addoption (parser : Parser ) -> None :
You can’t perform that action at this time.
0 commit comments