File tree Expand file tree Collapse file tree 11 files changed +15
-40
lines changed
Expand file tree Collapse file tree 11 files changed +15
-40
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ before_cache:
2222language : python
2323matrix :
2424 include :
25- - python : " 3.5"
25+ - python : " 3.5.3 "
2626 env :
2727 - EVENT_LOOP=asyncio
2828 - TIMEOUT=2.0
29- - python : " 3.5"
29+ - python : " 3.5.3 "
3030 env :
3131 - EVENT_LOOP=uvloop
3232 - TIMEOUT=2.0
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Changelog
44`4.0.0 `_ (2018-01-24)
55---------------------
66
7- **Important: ** Make sure you're using Python >= 3.5.2 before upgrading.
7+ **Important: ** Make sure you're using Python >= 3.5.3 before upgrading.
88
99- Drop Python 3.4 support (major)
1010- Deprecate the CLI options `-sc `, `--sslcert ` and `-sk `, `--sslkey `. Use
Original file line number Diff line number Diff line change 33import ssl # noqa
44import sys
55from typing import Any # noqa
6+ from typing import Coroutine # noqa
67from typing import List # noqa
78from typing import Optional
89
910import logbook .more
1011
1112import saltyrtc .server
12- from saltyrtc .server .typing import Coroutine # noqa
1313from saltyrtc .server .typing import ServerSecretPermanentKey # noqa
1414
1515
Original file line number Diff line number Diff line change 44import ssl # noqa
55import sys
66from typing import Any # noqa
7+ from typing import Coroutine # noqa
78from typing import List # noqa
89from typing import Optional
910
1011import logbook .more
1112
1213import saltyrtc .server
13- from saltyrtc .server .typing import Coroutine # noqa
1414from saltyrtc .server .typing import ServerSecretPermanentKey # noqa
1515
1616
Original file line number Diff line number Diff line change 11"""
2- This is a SaltyRTC server implementation for Python 3.5+ using
2+ This is a SaltyRTC server implementation for Python 3.5.3 + using
33:mod:`asyncio`.
44"""
55import itertools
Original file line number Diff line number Diff line change 77import signal
88import stat
99from typing import Any # noqa
10+ from typing import Coroutine # noqa
1011from typing import List # noqa
1112from typing import Optional # noqa
1213from typing import Sequence # noqa
1920 server ,
2021 util ,
2122)
22- from .typing import Coroutine # noqa
2323from .typing import ServerSecretPermanentKey # noqa
2424from .typing import LogbookLevel
2525
Original file line number Diff line number Diff line change 22import binascii
33import io
44import struct
5+ from typing import ClassVar # noqa
56from typing import (
67 TYPE_CHECKING ,
78 Any ,
4243 MessageError ,
4344 MessageFlowError ,
4445)
45- from .typing import ClassVar # noqa
4646from .typing import (
4747 ChosenSubProtocol ,
4848 ClientCookie ,
Original file line number Diff line number Diff line change 22import enum
33import os
44import struct
5+ # noinspection PyUnresolvedReferences
6+ from typing import Coroutine # noqa
57from typing import Dict # noqa
68from typing import (
79 Any ,
4749 OutgoingMessageMixin ,
4850 unpack ,
4951)
50- # noinspection PyUnresolvedReferences
51- from .typing import Coroutine # noqa
5252from .typing import (
5353 ClientCookie ,
5454 ClientPublicKey ,
Original file line number Diff line number Diff line change 33import ssl
44from collections import OrderedDict
55from typing import Awaitable # noqa
6+ from typing import ClassVar # noqa
67from typing import Dict # noqa
78from typing import List # noqa
89from typing import Set # noqa
910from typing import (
1011 Any ,
12+ Coroutine ,
1113 Iterable ,
1214 Mapping ,
1315 Optional ,
6769 Path ,
6870 PathClient ,
6971)
70- from .typing import ClassVar # noqa
7172from .typing import (
7273 ChosenSubProtocol ,
73- Coroutine ,
7474 DisconnectedData ,
7575 EventCallback ,
7676 EventData ,
Original file line number Diff line number Diff line change 1- import sys
21from typing import (
32 TYPE_CHECKING ,
43 Any ,
2423 from .events import Event # noqa
2524
2625__all__ = (
27- 'Coroutine' ,
28- 'ClassVar' ,
2926 'NoReturn' ,
3027 'ListOrTuple' ,
3128 'PathHex' ,
6259# Important: Do not export!
6360T = TypeVar ('T' ) # Any type
6461
65- # Coroutine
66- try :
67- from typing import Coroutine
68- except ImportError :
69- # noinspection PyUnresolvedReferences
70- from typing_extensions import Coroutine # Python <= 3.5.2
71-
72- # ClassVar
73- try :
74- from typing import ClassVar
75- except ImportError :
76- # noinspection PyUnresolvedReferences
77- from typing_extensions import ClassVar # Python <= 3.5.2
78-
7962# NoReturn
8063try :
8164 from typing import NoReturn
8770# -------
8871
8972# List or Tuple
90- py_version = sys .version_info [:3 ]
91- if py_version > (3 , 5 , 2 ):
92- ListOrTuple = Union [List [T ], Tuple [T ]]
93- else :
94- # Workaround for "Cannot subscript an existing Union" in Python 3.5.2
95- ListOrTuple = List # type: ignore
73+ ListOrTuple = Union [List [T ], Tuple [T ]]
9674
9775
9876# Common
You can’t perform that action at this time.
0 commit comments