@@ -5,6 +5,65 @@ from typing import Any, AsyncIterator, Awaitable, Callable, Iterable, Optional
5
5
from . import events , protocols , transports
6
6
from .base_events import Server
7
7
8
+ if sys .platform == "win32" :
9
+ if sys .version_info >= (3 , 8 ):
10
+ __all__ = ("StreamReader" , "StreamWriter" , "StreamReaderProtocol" , "open_connection" , "start_server" )
11
+ elif sys .version_info >= (3 , 7 ):
12
+ __all__ = (
13
+ "StreamReader" ,
14
+ "StreamWriter" ,
15
+ "StreamReaderProtocol" ,
16
+ "open_connection" ,
17
+ "start_server" ,
18
+ "IncompleteReadError" ,
19
+ "LimitOverrunError" ,
20
+ )
21
+ else :
22
+ __all__ = [
23
+ "StreamReader" ,
24
+ "StreamWriter" ,
25
+ "StreamReaderProtocol" ,
26
+ "open_connection" ,
27
+ "start_server" ,
28
+ "IncompleteReadError" ,
29
+ "LimitOverrunError" ,
30
+ ]
31
+ else :
32
+ if sys .version_info >= (3 , 8 ):
33
+ __all__ = (
34
+ "StreamReader" ,
35
+ "StreamWriter" ,
36
+ "StreamReaderProtocol" ,
37
+ "open_connection" ,
38
+ "start_server" ,
39
+ "open_unix_connection" ,
40
+ "start_unix_server" ,
41
+ )
42
+ elif sys .version_info >= (3 , 7 ):
43
+ __all__ = (
44
+ "StreamReader" ,
45
+ "StreamWriter" ,
46
+ "StreamReaderProtocol" ,
47
+ "open_connection" ,
48
+ "start_server" ,
49
+ "IncompleteReadError" ,
50
+ "LimitOverrunError" ,
51
+ "open_unix_connection" ,
52
+ "start_unix_server" ,
53
+ )
54
+ else :
55
+ __all__ = [
56
+ "StreamReader" ,
57
+ "StreamWriter" ,
58
+ "StreamReaderProtocol" ,
59
+ "open_connection" ,
60
+ "start_server" ,
61
+ "IncompleteReadError" ,
62
+ "LimitOverrunError" ,
63
+ "open_unix_connection" ,
64
+ "start_unix_server" ,
65
+ ]
66
+
8
67
_ClientConnectedCallback = Callable [[StreamReader , StreamWriter ], Optional [Awaitable [None ]]]
9
68
10
69
if sys .version_info < (3 , 8 ):
0 commit comments