From 67df3fc2a8fab872af1982af3e80068f01823da7 Mon Sep 17 00:00:00 2001 From: Lucas Bickel <116588+hairmare@users.noreply.github.com> Date: Mon, 25 Mar 2024 21:15:05 +0100 Subject: [PATCH] fix(types): use PEP-655 NotRequired (#191) --- acrclient/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acrclient/models.py b/acrclient/models.py index 68ac108..53948d6 100644 --- a/acrclient/models.py +++ b/acrclient/models.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import TypedDict +from typing import NotRequired, TypedDict class GetBmCsProjectsResultsParams(TypedDict): # pragma: no cover @@ -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)"""