10000 Use relative imports in asyncio.tasks and asyncio.futures · python/typeshed@70ddf02 · GitHub
[go: up one dir, main page]

Skip to content

Commit 70ddf02

Browse files
author
David Soria Parra
committed
8000
Use relative imports in asyncio.tasks and asyncio.futures
1 parent 3223a69 commit 70ddf02

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

stdlib/3.4/asyncio/futures.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from typing import Any, Union, Callable, TypeVar, List, Generic, Iterable, Generator
2-
from asyncio.events import AbstractEventLoop
2+
from .events import AbstractEventLoop
33
# __all__ = ['CancelledError', 'TimeoutError',
44
# 'InvalidStateError',
55
# 'wrap_future',

stdlib/3.4/asyncio/tasks.pyi

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
from typing import Any, Iterable, TypeVar, Set, Dict, List, TextIO, Union, Tuple, Generic, Callable, Generator
2-
from asyncio.events import AbstractEventLoop
3-
from asyncio.futures import Future
4-
# __all__ = ['iscoroutinefunction', 'iscoroutine',
5-
# 'as_completed', 'async',
6-
# 'gather', 'shield',
7-
# ]
82

93
__all__ = ['Task', 'sleep',
104
'FIRST_COMPLETED', 'FIRST_EXCEPTION', 'ALL_COMPLETED',
115
'wait', 'wait_for']
126

7+
from .events import AbstractEventLoop
8+
from .futures import Future
9+
1310
FIRST_EXCEPTION = 'FIRST_EXCEPTION'
1411
FIRST_COMPLETED = 'FIRST_COMPLETED'
1512
ALL_COMPLETED = 'ALL_COMPLETED'

0 commit comments

Comments
 (0)
0