mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 09:08:27 +08:00
future first: switch the order of some if statements (#5206)
Since we're adding this to our contribution guidelines in https://github.com/python/typeshed/pull/5205
This commit is contained in:
@@ -10,10 +10,10 @@ class EncodeError(Error): ...
|
||||
|
||||
_M = TypeVar("_M", bound=Message) # message type (of self)
|
||||
|
||||
if sys.version_info < (3,):
|
||||
_Serialized = Union[bytes, buffer, unicode]
|
||||
else:
|
||||
if sys.version_info >= (3, 0):
|
||||
_Serialized = ByteString
|
||||
else:
|
||||
_Serialized = Union[bytes, buffer, unicode]
|
||||
|
||||
class Message:
|
||||
DESCRIPTOR: Descriptor
|
||||
|
||||
Reference in New Issue
Block a user