mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +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:
@@ -124,6 +124,6 @@ class Cookie:
|
||||
@overload
|
||||
def get_nonstandard_attr(self, name: str) -> Optional[str]: ...
|
||||
@overload
|
||||
def get_nonstandard_attr(self, name: str, default: _T = ...) -> Union[str, _T]: ...
|
||||
def get_nonstandard_attr(self, name: str, default: _T) -> Union[str, _T]: ...
|
||||
def set_nonstandard_attr(self, name: str, value: str) -> None: ...
|
||||
def is_expired(self, now: int = ...) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user