https://github.com/dcbaker/pep739-types
Python typing annotations for PEP730 build-details.json
https://github.com/dcbaker/pep739-types
Last synced: 6 months ago
JSON representation
Python typing annotations for PEP730 build-details.json
- Host: GitHub
- URL: https://github.com/dcbaker/pep739-types
- Owner: dcbaker
- License: mit
- Created: 2025-12-18T18:53:44.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-12-19T23:53:35.000Z (7 months ago)
- Last Synced: 2025-12-21T21:36:38.430Z (7 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Type stubs for PEP 739 build-details.json
This provides a basic set of TypedDict definitions for the json data.
There is no actual code here, just the stubs
## Revisions
Because PEP 739 is revisable, there is a plan in place for this.
The stubs export two module level constants:
- `PEP739_v1`: This is a union of all possible PEP 739 revisions of major version
1, ie. 1.1, 1.2. Each revision has it's schema as a constant of `Literal['X.Y']`,
so it should be possible to differentiate the union based on that.
- `PEP739`: This is a union of all possible PEP 739 revisions, regardless of
major version.
As new major revisions are added, a new constant will be added for that major
version.
Additionally, if the end user knows what version they wish to output, the
versions are exposed through the `vX_Y` modules. For example, if the user
knows that they only will use version 1.0, they can import `pep749.v1_0`.