mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
platform: update for py39 (#4506)
platform.DEVNULL seemed undocumented, but is eg, still mentioned in the header comment of platform.py. So feels surprising this was removed without much warning. Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
# Stubs for platform (Python 3.5)
|
||||
|
||||
import sys
|
||||
from os import devnull as DEV_NULL
|
||||
|
||||
if sys.version_info < (3, 9):
|
||||
from os import devnull as DEV_NULL
|
||||
from typing import NamedTuple, Optional, Tuple
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
|
||||
Reference in New Issue
Block a user