From 6e8286eb98f66ad9c14bb67bedab8744430d9a5a Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Mon, 25 Nov 2024 14:46:54 -0500 Subject: [PATCH] Ignore some type-checking errors under Python 3.13 --- dandi/dandiarchive.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dandi/dandiarchive.py b/dandi/dandiarchive.py index eefb99af5..2c0c1ca1b 100644 --- a/dandi/dandiarchive.py +++ b/dandi/dandiarchive.py @@ -287,7 +287,10 @@ def is_under_download_path(self, path: str) -> bool: @dataclass -class BaseAssetIDURL(SingleAssetURL): +# The below `type: ignore[override]` prevents mypy under Python 3.13+ from +# complaining about problems caused by overriding the types of `dandiset_id` +# and `version_id` from what they are in ParsedDandiURL. +class BaseAssetIDURL(SingleAssetURL): # type: ignore[override] """ Parsed from a URL that refers to an asset by ID and does not include the Dandiset ID