Skip to content

Commit 7370db0

Browse files
committed
Add a few docstrings
1 parent b86ef86 commit 7370db0

File tree

1 file changed

+2
-0
lines changed
  • backend/src/hatchling/metadata

1 file changed

+2
-0
lines changed

backend/src/hatchling/metadata/core.py

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def context(self) -> Context:
6969

7070
@cached_property
7171
def core_raw_metadata(self) -> dict[str, Any]:
72+
"""Metadata from `pyproject.toml` or similar, possibly with dynamic fields overwritten by `PKG-INFO`."""
7273
if 'project' not in self.config:
7374
message = 'Missing `project` metadata table in configuration'
7475
raise ValueError(message)
@@ -139,6 +140,7 @@ def version(self) -> str:
139140

140141
@property
141142
def config(self) -> dict[str, Any]:
143+
"""The config dict, directly from `pyproject.toml` or similar."""
142144
if self._config is None:
143145
project_file = locate_file(self.root, 'pyproject.toml')
144146
if project_file is None:

0 commit comments

Comments
 (0)