Skip to content

Commit

Permalink
fix(types): use PEP-655 NotRequired (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Mar 25, 2024
1 parent e962e3b commit 67df3fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acrclient/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import TypedDict
from typing import NotRequired, TypedDict


class GetBmCsProjectsResultsParams(TypedDict): # pragma: no cover
Expand All @@ -12,9 +12,9 @@ class GetBmCsProjectsResultsParams(TypedDict): # pragma: no cover
"""last: get the last results, day: get the day results, Default is day"""
date: str
"""Get all the results on this date. The format is YYYYmmdd (E.g. 20210201)"""
min_duration: int | None
min_duration: NotRequired[int | None]
"""Return the results of played_duration >= min_duration seconds (default: 0)"""
max_duration: int | None
max_duration: NotRequired[int | None]
"""Return results with played_duration <= max_duration seconds (default: 3600)"""
isrc_country: str | None
isrc_country: NotRequired[str | None]
"""Only return results that match the isrc country code (E.g. DE, FR, IT, US)"""

0 comments on commit 67df3fc

Please sign in to comment.