Use lowercase type everywhere (#6853)

This commit is contained in:
Alex Waygood
2022-01-08 15:09:29 +00:00
committed by GitHub
parent f8501d33c7
commit a40d79a4e6
172 changed files with 728 additions and 761 deletions

View File

@@ -2,7 +2,7 @@ import socket
import sys
import types
from _typeshed import Self
from typing import Any, Iterable, Type, Union
from typing import Any, Iterable, Union
if sys.version_info >= (3, 8):
from typing import SupportsIndex
@@ -31,7 +31,7 @@ class _ConnectionBase:
def poll(self, timeout: float | None = ...) -> bool: ...
def __enter__(self: Self) -> Self: ...
def __exit__(
self, exc_type: Type[BaseException] | None, exc_value: BaseException | None, exc_tb: types.TracebackType | None
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, exc_tb: types.TracebackType | None
) -> None: ...
class Connection(_ConnectionBase): ...
@@ -51,7 +51,7 @@ class Listener:
def last_accepted(self) -> _Address | None: ...
def __enter__(self: Self) -> Self: ...
def __exit__(
self, exc_type: Type[BaseException] | None, exc_value: BaseException | None, exc_tb: types.TracebackType | None
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, exc_tb: types.TracebackType | None
) -> None: ...
def deliver_challenge(connection: Connection, authkey: bytes) -> None: ...