|
1 | | -from .version import __version__ |
2 | | -from .project import project |
3 | | - |
4 | | -from .backend import Backend, BackendException, DecryptionFailed, KeyExchangeFailed, TooManySkippedMessageKeys |
5 | | -from .bundle import Bundle |
6 | | -from .message import Content, EncryptedKeyMaterial, KeyExchange, Message |
| 1 | +from .version import __version__ as __version__ |
| 2 | +from .project import project as project |
| 3 | + |
| 4 | +from .backend import ( |
| 5 | + Backend as Backend, |
| 6 | + BackendException as BackendException, |
| 7 | + DecryptionFailed as DecryptionFailed, |
| 8 | + KeyExchangeFailed as KeyExchangeFailed, |
| 9 | + TooManySkippedMessageKeys as TooManySkippedMessageKeys |
| 10 | +) |
| 11 | +from .bundle import Bundle as Bundle |
| 12 | +from .message import ( |
| 13 | + Content as Content, |
| 14 | + EncryptedKeyMaterial as EncryptedKeyMaterial, |
| 15 | + KeyExchange as KeyExchange, |
| 16 | + Message as Message |
| 17 | +) |
7 | 18 |
|
8 | 19 | from .session_manager import ( |
9 | | - SessionManagerException, |
10 | | - |
11 | | - TrustDecisionFailed, |
12 | | - StillUndecided, |
13 | | - NoEligibleDevices, |
14 | | - |
15 | | - MessageNotForUs, |
16 | | - SenderNotFound, |
17 | | - SenderDistrusted, |
18 | | - NoSession, |
19 | | - PublicDataInconsistency, |
20 | | - |
21 | | - UnknownTrustLevel, |
22 | | - UnknownNamespace, |
23 | | - |
24 | | - XMPPInteractionFailed, |
25 | | - BundleUploadFailed, |
26 | | - BundleDownloadFailed, |
27 | | - BundleNotFound, |
28 | | - BundleDeletionFailed, |
29 | | - DeviceListUploadFailed, |
30 | | - DeviceListDownloadFailed, |
31 | | - MessageSendingFailed, |
32 | | - |
33 | | - SessionManager |
| 20 | + SessionManagerException as SessionManagerException, |
| 21 | + |
| 22 | + TrustDecisionFailed as TrustDecisionFailed, |
| 23 | + StillUndecided as StillUndecided, |
| 24 | + NoEligibleDevices as NoEligibleDevices, |
| 25 | + |
| 26 | + MessageNotForUs as MessageNotForUs, |
| 27 | + SenderNotFound as SenderNotFound, |
| 28 | + SenderDistrusted as SenderDistrusted, |
| 29 | + NoSession as NoSession, |
| 30 | + PublicDataInconsistency as PublicDataInconsistency, |
| 31 | + |
| 32 | + UnknownTrustLevel as UnknownTrustLevel, |
| 33 | + UnknownNamespace as UnknownNamespace, |
| 34 | + |
| 35 | + XMPPInteractionFailed as XMPPInteractionFailed, |
| 36 | + BundleUploadFailed as BundleUploadFailed, |
| 37 | + BundleDownloadFailed as BundleDownloadFailed, |
| 38 | + BundleNotFound as BundleNotFound, |
| 39 | + BundleDeletionFailed as BundleDeletionFailed, |
| 40 | + DeviceListUploadFailed as DeviceListUploadFailed, |
| 41 | + DeviceListDownloadFailed as DeviceListDownloadFailed, |
| 42 | + MessageSendingFailed as MessageSendingFailed, |
| 43 | + |
| 44 | + SessionManager as SessionManager |
34 | 45 | ) |
35 | 46 |
|
36 | | -from .storage import Just, Maybe, Nothing, NothingException, Storage, StorageException |
37 | | -from .types import AsyncFramework, DeviceInformation, JSONType, OMEMOException, TrustLevel |
38 | | - |
39 | | -# Fun: |
40 | | -# https://github.com/PyCQA/pylint/issues/6006 |
41 | | -# https://github.com/python/mypy/issues/10198 |
42 | | -__all__ = [ # pylint: disable=unused-variable |
43 | | - # .version |
44 | | - "__version__", |
45 | | - |
46 | | - # .project |
47 | | - "project", |
48 | | - |
49 | | - # .backend |
50 | | - "Backend", |
51 | | - "BackendException", |
52 | | - "DecryptionFailed", |
53 | | - "KeyExchangeFailed", |
54 | | - "TooManySkippedMessageKeys", |
55 | | - |
56 | | - # .bundle |
57 | | - "Bundle", |
58 | | - |
59 | | - # .message |
60 | | - "Content", |
61 | | - "EncryptedKeyMaterial", |
62 | | - "KeyExchange", |
63 | | - "Message", |
64 | | - |
65 | | - # .session_manager |
66 | | - "SessionManagerException", |
67 | | - |
68 | | - "TrustDecisionFailed", |
69 | | - "StillUndecided", |
70 | | - "NoEligibleDevices", |
71 | | - |
72 | | - "MessageNotForUs", |
73 | | - "SenderNotFound", |
74 | | - "SenderDistrusted", |
75 | | - "NoSession", |
76 | | - "PublicDataInconsistency", |
77 | | - |
78 | | - "UnknownTrustLevel", |
79 | | - "UnknownNamespace", |
80 | | - |
81 | | - "XMPPInteractionFailed", |
82 | | - "BundleUploadFailed", |
83 | | - "BundleDownloadFailed", |
84 | | - "BundleNotFound", |
85 | | - "BundleDeletionFailed", |
86 | | - "DeviceListUploadFailed", |
87 | | - "DeviceListDownloadFailed", |
88 | | - "MessageSendingFailed", |
89 | | - |
90 | | - "SessionManager", |
91 | | - |
92 | | - # .storage |
93 | | - "Just", |
94 | | - "Maybe", |
95 | | - "Nothing", |
96 | | - "NothingException", |
97 | | - "Storage", |
98 | | - "StorageException", |
99 | | - |
100 | | - # .types |
101 | | - "AsyncFramework", |
102 | | - "DeviceInformation", |
103 | | - "JSONType", |
104 | | - "OMEMOException", |
105 | | - "TrustLevel" |
106 | | -] |
| 47 | +from .storage import ( |
| 48 | + Just as Just, |
| 49 | + Maybe as Maybe, |
| 50 | + Nothing as Nothing, |
| 51 | + NothingException as NothingException, |
| 52 | + Storage as Storage, |
| 53 | + StorageException as StorageException |
| 54 | +) |
| 55 | +from .types import ( |
| 56 | + AsyncFramework as AsyncFramework, |
| 57 | + DeviceInformation as DeviceInformation, |
| 58 | + JSONType as JSONType, |
| 59 | + OMEMOException as OMEMOException, |
| 60 | + TrustLevel as TrustLevel |
| 61 | +) |
0 commit comments