mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 19:17:16 +08:00
Use lowercase type everywhere (#6853)
This commit is contained in:
@@ -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]]
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user