Commit 2e2825b 1 parent eef3cd8 commit 2e2825b Copy full SHA for 2e2825b
File tree 3 files changed +17
-21
lines changed
3 files changed +17
-21
lines changed Original file line number Diff line number Diff line change 8
8
if : |
9
9
!contains(github.event.pull_request.labels.*.name, 'skip:changelog')
10
10
steps :
11
- - uses : actions/checkout@v2
11
+ - uses : actions/checkout@v4
12
12
with :
13
13
fetch-depth : 0
14
14
- name : Set up Python
15
- uses : actions/setup-python@v3
15
+ uses : actions/setup-python@v5
16
16
with :
17
17
python-version : " 3.10"
18
18
cache : " pip"
Original file line number Diff line number Diff line change
1
+ Fix static type checker's recognition of `aiotools.taskgroup` public exports, such as `aiotools.PersistentTaskGroup`
Original file line number Diff line number Diff line change 2
2
3
3
from .types import MultiError , TaskGroupError
4
4
5
+ __all__ = [
6
+ "MultiError" ,
7
+ "TaskGroup" ,
8
+ "TaskGroupError" ,
9
+ "PersistentTaskGroup" ,
10
+ "as_completed_safe" ,
11
+ "persistent" ,
12
+ "persistent_compat" ,
13
+ "current_taskgroup" ,
14
+ "current_ptaskgroup" ,
15
+ "has_contextvars" ,
16
+ ]
17
+
5
18
if hasattr (asyncio , "TaskGroup" ):
6
19
from . import persistent
7
20
from .base import * # noqa
8
21
from .persistent import * # noqa
9
22
10
- __all__ = [
11
- "MultiError" ,
12
- "TaskGroup" ,
13
- "TaskGroupError" ,
14
- "current_taskgroup" ,
15
- * persistent .__all__ ,
16
- ]
23
+ has_contextvars = True
17
24
else :
18
25
from . import persistent_compat
19
26
from .base_compat import * # type: ignore # noqa
20
27
from .base_compat import has_contextvars
21
28
from .persistent_compat import * # type: ignore # noqa
22
29
23
- __all__ = [ # type: ignore # noqa
24
- "MultiError" ,
25
- "TaskGroup" ,
26
- "TaskGroupError" ,
27
- * persistent_compat .__all__ ,
28
- ]
29
- if has_contextvars :
30
- __all__ .append ("current_taskgroup" )
31
-
32
-
33
30
from .utils import as_completed_safe # noqa
34
-
35
- __all__ .append ("as_completed_safe" )
You can’t perform that action at this time.
0 commit comments