mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Enable --disallow-any-generics for stubs (#3288)
This commit is contained in:
committed by
Jelle Zijlstra
parent
23b353303b
commit
c32e1e2280
@@ -40,6 +40,7 @@ else:
|
||||
_CMD = Union[_TXT, Sequence[_PATH]]
|
||||
_ENV = Union[Mapping[bytes, _TXT], Mapping[Text, _TXT]]
|
||||
|
||||
_S = TypeVar('_S')
|
||||
_T = TypeVar('_T')
|
||||
|
||||
class CompletedProcess(Generic[_T]):
|
||||
@@ -1169,7 +1170,7 @@ class Popen(Generic[AnyStr]):
|
||||
def send_signal(self, signal: int) -> None: ...
|
||||
def terminate(self) -> None: ...
|
||||
def kill(self) -> None: ...
|
||||
def __enter__(self) -> Popen: ...
|
||||
def __enter__(self: _S) -> _S: ...
|
||||
def __exit__(self, type: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]) -> None: ...
|
||||
|
||||
# The result really is always a str.
|
||||
|
||||
Reference in New Issue
Block a user