mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Fix miscellaneous invalid TypeVar usages (#8074)
This commit is contained in:
@@ -46,9 +46,10 @@ class Mailbox(Generic[_MessageT]):
|
||||
|
||||
_path: bytes | str # undocumented
|
||||
_factory: Callable[[IO[Any]], _MessageT] | None # undocumented
|
||||
def __init__(
|
||||
self, path: StrOrBytesPath, factory: Callable[[IO[Any]], _MessageT] | None = ..., create: bool = ...
|
||||
) -> None: ...
|
||||
@overload
|
||||
def __init__(self, path: StrOrBytesPath, factory: Callable[[IO[Any]], _MessageT], create: bool = ...) -> None: ...
|
||||
@overload
|
||||
def __init__(self, path: StrOrBytesPath, factory: None = ..., create: bool = ...) -> None: ...
|
||||
@abstractmethod
|
||||
def add(self, message: _MessageData) -> str: ...
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user