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

@@ -1,5 +1,3 @@
from typing import Type
def assert_(condition: object) -> None: ...
ERR_FRAGMENT: str
@@ -22,4 +20,4 @@ class NotFoundError(DAVError): ...
class ConsistencyError(DAVError): ...
class ResponseError(DAVError): ...
exception_by_method: dict[str, Type[DAVError]]
exception_by_method: dict[str, type[DAVError]]

View File

@@ -1,7 +1,7 @@
import datetime
from _typeshed import Self
from collections.abc import Iterable, Iterator, Mapping
from typing import Any, Type, TypeVar, overload
from typing import Any, TypeVar, overload
from typing_extensions import Literal
from urllib.parse import ParseResult, SplitResult
@@ -101,7 +101,7 @@ class Calendar(DAVObject):
@overload
def search(self, xml, comp_class: None = ...) -> list[CalendarObjectResource]: ...
@overload
def search(self, xml, comp_class: Type[_CC]) -> list[_CC]: ...
def search(self, xml, comp_class: type[_CC]) -> list[_CC]: ...
def freebusy_request(self, start: datetime.datetime, end: datetime.datetime) -> FreeBusy: ...
def todos(self, sort_keys: Iterable[str] = ..., include_completed: bool = ..., sort_key: str | None = ...) -> list[Todo]: ...
def event_by_url(self, href, data: Any | None = ...) -> Event: ...