diff --git a/docs/simple.rst b/docs/simple.rst index 50eaa12..893ed6e 100644 --- a/docs/simple.rst +++ b/docs/simple.rst @@ -63,6 +63,13 @@ .. versionadded:: 2022.1.0 +.. data:: ProjectFileDetails + + A :data:`~typing.TypeAlias` for any version of the JSON project file details + response. + + .. versionadded:: 2023.2 + .. autodata:: ProjectDetails_1_0 :no-value: diff --git a/mousebender/simple.py b/mousebender/simple.py index 59f12da..12c9c63 100644 --- a/mousebender/simple.py +++ b/mousebender/simple.py @@ -139,6 +139,9 @@ class ProjectFileDetails_1_1(_OptionalProjectFileDetails_1_1): size: int +ProjectFileDetails: TypeAlias = Union[ProjectFileDetails_1_0, ProjectFileDetails_1_1] + + class ProjectDetails_1_0(TypedDict): """A :class:`~typing.TypedDict` for a project details response (:pep:`691`).""" diff --git a/pyproject.toml b/pyproject.toml index a11b04c..399666b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi" [project] name = "mousebender" -version = "2023.1" +version = "2023.2" authors = [ { name = "Brett Cannon", email = "brett@python.org" }, { name = "Derek Keeler", email = "derek@suchcool.ca" },