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:
Jukka Lehtosalo
2016-04-28 11:53:51 +01:00
parent fde085bbdd
commit a5d5dcc4f4
2 changed files with 9 additions and 3 deletions

View File

@@ -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]