mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
Fixes to os.environ (#172)
Add os.environ.copy() to Python 2 stubs. Fix return type of os.environ.copy().
This commit is contained in:
@@ -62,7 +62,7 @@ W_OK = 0
|
||||
X_OK = 0
|
||||
|
||||
class _Environ(MutableMapping[AnyStr, AnyStr], Generic[AnyStr]):
|
||||
def copy(self) -> _Environ[AnyStr]: ...
|
||||
def copy(self) -> Dict[AnyStr, AnyStr]: ...
|
||||
|
||||
environ = ... # type: _Environ[str]
|
||||
environb = ... # type: _Environ[bytes]
|
||||
|
||||
Reference in New Issue
Block a user