File tree 5 files changed +14
-3
lines changed
5 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 7
7
from typing import Callable
8
8
from typing import Coroutine
9
9
from typing import TYPE_CHECKING
10
- from typing import TypeGuard
11
10
from typing import TypeVar
12
11
13
12
from greenlet import greenlet
14
13
14
+ from .util .typing import TypeGuard
15
+
15
16
_T = TypeVar ("_T" )
16
17
17
18
Original file line number Diff line number Diff line change 6
6
from typing import Any
7
7
from typing import Coroutine
8
8
from typing import Literal
9
- from typing import Self
10
9
from typing import TypeVar
11
10
from typing import Union
12
11
13
12
from .langhelpers import _pytest_fn_decorator
13
+ from .typing import Self
14
14
15
15
_T = TypeVar ("_T" , bound = Any )
16
16
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+
3
+ if True : # zimports removes the tailing comments
4
+ from typing_extensions import (
5
+ Literal as Literal ,
6
+ ) # 3.8 but has bugs before 3.10
7
+ from typing_extensions import Self as Self # 3.11
8
+ from typing_extensions import TypeGuard as TypeGuard # 3.10
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ classifiers = [
21
21
]
22
22
23
23
dependencies = [
24
- " greenlet"
24
+ " greenlet" ,
25
+ " typing-extensions >= 4.6.0" ,
25
26
]
26
27
27
28
[tool .setuptools .packages ]
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ enable-extensions = G
4
4
# E203 is due to https://github.com/PyCQA/pycodestyle/issues/373
5
5
per-file-ignores =
6
6
**/__init__.py:F401
7
+ awaitlet/util/typing.py:F401
7
8
ignore =
8
9
A003,A005
9
10
D,
You can’t perform that action at this time.
0 commit comments