From 429ab8d38e3f42f04e498531cba0582e022b208b Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Wed, 25 Dec 2024 12:00:26 +0100 Subject: [PATCH] Add a few docstrings --- backend/src/hatchling/metadata/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/hatchling/metadata/core.py b/backend/src/hatchling/metadata/core.py index 8ad645662..cb2523a6c 100644 --- a/backend/src/hatchling/metadata/core.py +++ b/backend/src/hatchling/metadata/core.py @@ -69,6 +69,7 @@ def context(self) -> Context: @cached_property def core_raw_metadata(self) -> dict[str, Any]: + """Metadata from `pyproject.toml` or similar, possibly with dynamic fields overwritten by `PKG-INFO`.""" if 'project' not in self.config: message = 'Missing `project` metadata table in configuration' raise ValueError(message) @@ -139,6 +140,7 @@ def version(self) -> str: @property def config(self) -> dict[str, Any]: + """The config dict, directly from `pyproject.toml` or similar.""" if self._config is None: project_file = locate_file(self.root, 'pyproject.toml') if project_file is None: