mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-06 15:14:18 +08:00
Resolve some stubtest allowlist entries by marking params as keyword-only (#12581)
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
# **kwargs replaced with actual arguments in stubs
|
||||
caldav.DAVClient.calendar
|
||||
# Passes its *args after a kwarg, which is a SyntaxError, so we allow kwargs only
|
||||
caldav.DAVClient.principal
|
||||
caldav.davclient.DAVClient.calendar
|
||||
caldav.davclient.DAVClient.principal
|
||||
|
||||
# Initialized in class, but immediately overwritten in __init__
|
||||
|
||||
@@ -58,9 +58,10 @@ class DAVClient:
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
|
||||
) -> None: ...
|
||||
def principal(self, *, url: str | ParseResult | SplitResult | URL | None = ...) -> Principal: ...
|
||||
def principal(self, *, url: str | ParseResult | SplitResult | URL | None = None) -> Principal: ...
|
||||
def calendar(
|
||||
self,
|
||||
*,
|
||||
url: str | ParseResult | SplitResult | URL | None = ...,
|
||||
parent: DAVObject | None = ...,
|
||||
name: str | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user