File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
# See #940 for why lazy_import isn't used here for backwards compatibility.
4
+ # See #1400 for why listing compatibility imports in __all__ helps PyCharm.
4
5
from .legacy .auth import *
6
+ from .legacy .auth import __all__ # noqa: F401
Original file line number Diff line number Diff line change 38
38
39
39
40
40
# See #940 for why lazy_import isn't used here for backwards compatibility.
41
+ # See #1400 for why listing compatibility imports in __all__ helps PyCharm.
41
42
from .legacy .client import * # isort:skip # noqa: I001
43
+ from .legacy .client import __all__ as legacy__all__
42
44
43
45
44
- __all__ = ["ClientProtocol" ]
46
+ __all__ = ["ClientProtocol" ] + legacy__all__
45
47
46
48
47
49
class ClientProtocol (Protocol ):
Original file line number Diff line number Diff line change 39
39
40
40
41
41
# See #940 for why lazy_import isn't used here for backwards compatibility.
42
+ # See #1400 for why listing compatibility imports in __all__ helps PyCharm.
42
43
from .legacy .server import * # isort:skip # noqa: I001
44
+ from .legacy .server import __all__ as legacy__all__
43
45
44
46
45
- __all__ = ["ServerProtocol" ]
47
+ __all__ = ["ServerProtocol" ] + legacy__all__
46
48
47
49
48
50
class ServerProtocol (Protocol ):
Original file line number Diff line number Diff line change 1
1
import unittest
2
2
3
3
import websockets
4
+ import websockets .auth
4
5
import websockets .client
5
6
import websockets .exceptions
6
- import websockets .legacy .auth
7
- import websockets .legacy .client
8
7
import websockets .legacy .protocol
9
- import websockets .legacy .server
10
8
import websockets .server
11
9
import websockets .typing
12
10
import websockets .uri
13
11
14
12
15
13
combined_exports = (
16
- websockets .legacy .auth .__all__
17
- + websockets .legacy .client .__all__
18
- + websockets .legacy .protocol .__all__
19
- + websockets .legacy .server .__all__
14
+ websockets .auth .__all__
20
15
+ websockets .client .__all__
21
16
+ websockets .exceptions .__all__
17
+ + websockets .legacy .protocol .__all__
22
18
+ websockets .server .__all__
23
19
+ websockets .typing .__all__
24
20
+ websockets .uri .__all__
You can’t perform that action at this time.
0 commit comments