Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation inconsistency - BuilderInterface #1904

Open
akettmann-id opened this issue Feb 5, 2025 · 0 comments
Open

Documentation inconsistency - BuilderInterface #1904

akettmann-id opened this issue Feb 5, 2025 · 0 comments

Comments

@akettmann-id
Copy link

Documentation states regarding the BuilderInterface.get_version_api method that it should return a dict[str,callable], where the callable has the signature def ...(build_dir: str, build_data: dict) -> str:. ref https://hatch.pypa.io/1.6/plugins/builder/reference/#hatchling.builders.plugin.interface.BuilderInterface.get_version_api

However, when a BuilderInterface instance is called by hatchling here: https://github.com/pypa/hatch/blob/master/backend/src/hatchling/builders/plugin/interface.py#L155

we are expanding the second arg:

                artifact = version_api[version](directory, **build_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant