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:
Jelle Zijlstra
2022-01-16 10:18:17 -08:00
committed by GitHub
parent 339bfbbfaa
commit 85318d1b21
2 changed files with 3 additions and 2 deletions

View File

@@ -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: ...

View File

@@ -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: ...