mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Cleanup: do not quote types unnecessarily (#6931)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -19,4 +19,4 @@ class Validator(Protocol):
|
||||
def is_valid(self, instance: dict[Any, Any]) -> bool: ...
|
||||
def iter_errors(self, instance: dict[Any, Any]) -> Iterator[ValidationError]: ...
|
||||
def validate(self, instance: dict[Any, Any]) -> None: ...
|
||||
def evolve(self, **kwargs) -> "Validator": ...
|
||||
def evolve(self, **kwargs) -> Validator: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Self
|
||||
from stat import S_IMODE as S_IMODE
|
||||
from types import TracebackType
|
||||
from typing import IO, Any, Callable, ContextManager, Sequence, Text, Union
|
||||
@@ -120,7 +121,7 @@ class Connection:
|
||||
@property
|
||||
def remote_server_key(self) -> paramiko.PKey: ...
|
||||
def __del__(self) -> None: ...
|
||||
def __enter__(self) -> "Connection": ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(
|
||||
self, etype: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
|
||||
) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user