Skip to content

Commit

Permalink
Add ProjectFileDetails (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon authored Oct 27, 2023
1 parent cae2469 commit b9bfee0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/simple.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
3 changes: 3 additions & 0 deletions mousebender/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`)."""

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "mousebender"
version = "2023.1"
version = "2023.2"
authors = [
{ name = "Brett Cannon", email = "[email protected]" },
{ name = "Derek Keeler", email = "[email protected]" },
Expand Down

0 comments on commit b9bfee0

Please sign in to comment.