mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
Addressed minor errors caught by pyright in stdlib stubs (#4880)
* Removed unused import symbols from stdlib stubs and fixed a few other errors detected by pyright. I did a similar pass several months ago; these were introduced since then. * Added a few missing types and type arguments. Removed unused import statement. Removed default values that caused overloads to have overlapping signatures. Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -390,7 +390,7 @@ if sys.platform != "win32":
|
||||
@overload
|
||||
def getenvb(key: bytes) -> Optional[bytes]: ...
|
||||
@overload
|
||||
def getenvb(key: bytes, default: _T = ...) -> Union[bytes, _T]: ...
|
||||
def getenvb(key: bytes, default: _T) -> Union[bytes, _T]: ...
|
||||
|
||||
def putenv(__name: Union[bytes, str], __value: Union[bytes, str]) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user