mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 12:44:33 +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:
1 parent
fde085bbdd
commit
a5d5dcc4f4
2 files changed
+9
-3
No files matched your search
@@ -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