mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-29 15:43:21 +08:00
Fix syntax in README.md.
This commit is contained in:
1 parent
f1047ec005
commit
828f42e350
1 file changed
+1
-1
@@ -79,7 +79,7 @@ According to PEP 484, type checkers are expected to understand simple
|
||||
version and platform checks. So the following syntax is legal in a `pyi`:
|
||||
|
||||
```
|
||||
if sys.version_info[0] >= 3:
|
||||
if sys.version_info >= (3,):
|
||||
# Python 3 specific definitions
|
||||
else:
|
||||
# Python 2 specific definitions
|
||||
|
||||
Reference in new issue
Block a user