Skip to content

Commit 47f2b79

Browse files
henryiiiBen Rowland
authored andcommitted
fix: include __dir__
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 081236e commit 47f2b79

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/scikit_build_core/metadata/fancy_pypi_readme.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
__all__ = ["dynamic_metadata"]
66

77

8+
def __dir__() -> list[str]:
9+
return __all__
10+
11+
812
def dynamic_metadata(
913
pyproject_dict: dict[str, Any]
1014
) -> dict[str, str | dict[str, str | None]]:

src/scikit_build_core/metadata/setuptools_scm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
__all__ = ["dynamic_metadata"]
66

77

8+
def __dir__() -> list[str]:
9+
return __all__
10+
11+
812
def dynamic_metadata(
913
pyproject_dict: dict[str, object] # noqa: ARG001
1014
) -> dict[str, str | dict[str, str | None]]:

0 commit comments

Comments
 (0)