mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Fix syntax in README.md.
This commit is contained in:
@@ -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