remove checks against patch versions (#987)

Both mypy and pytype only use the major and minor version in type checking. Using
checks like "sys.version_info >= (3, 4, 4)" won't actually work properly for
people type checking their code using version 3.4, because (3, 4) >= (3, 4, 4) will
always be false (at least in mypy's approach; not sure if pytype is different).
This commit is contained in:
Jelle Zijlstra
2017-03-12 20:16:09 -07:00
committed by Guido van Rossum
parent 2dbb5f0bc3
commit b6eec58d2c
3 changed files with 2 additions and 4 deletions

View File

@@ -118,7 +118,7 @@ class MIMEPart:
**kw: Any) -> None: ...
def clear(self) -> None: ...
def clear_content(self) -> None: ...
if sys.version_info >= (3, 4, 2):
if sys.version_info >= (3, 4):
def is_attachment(self) -> bool: ...
else:
@property