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:
Shantanu
2021-04-11 06:44:18 -07:00
committed by GitHub
parent b308c1f964
commit fa9d5a5e9f
36 changed files with 147 additions and 146 deletions

View File

@@ -7,9 +7,7 @@ class Error(Exception): ...
WAVE_FORMAT_PCM: int
if sys.version_info < (3, 0):
_wave_params = Tuple[int, int, int, int, str, str]
else:
if sys.version_info >= (3, 0):
class _wave_params(NamedTuple):
nchannels: int
sampwidth: int
@@ -18,6 +16,9 @@ else:
comptype: str
compname: str
else:
_wave_params = Tuple[int, int, int, int, str, str]
class Wave_read:
def __init__(self, f: _File) -> None: ...
if sys.version_info >= (3, 0):