Skip to content

Commit

Permalink
Merge pull request #1539 from dandi/ign-type-py13
Browse files Browse the repository at this point in the history
Ignore some type-checking errors under Python 3.13
  • Loading branch information
yarikoptic authored Nov 26, 2024
2 parents ff49fd1 + 6e8286e commit a832b95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dandi/dandiarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a832b95

Please sign in to comment.