Resolve some stubtest allowlist entries by marking params as keyword-only (#12581)

This commit is contained in:
Avasam
2024-08-23 02:47:06 -04:00
committed by GitHub
parent 073b270e55
commit 53be87bbb4
6 changed files with 7 additions and 14 deletions

View File

@@ -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__

View File

@@ -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 = ...,