From 7370db0451c4e869a307fd52c1567ee3806ab3c7 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 7015c9d01..69492d89d 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: