fix private methods being displayed in the docs

This commit is contained in:
Aran-Fey
2024-05-14 23:34:57 +02:00
parent f29f092cbc
commit 9819901152
4 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
__version__ = "0.6.5"
__version__ = "0.6.6"
import logging

View File

@@ -291,5 +291,10 @@ class NumberInput(Component):
return self._text_input
async def grab_keyboard_focus(self) -> None:
"""
## Metadata
public: False
"""
if self._text_input is not None:
await self._text_input.grab_keyboard_focus()

View File

@@ -334,7 +334,7 @@ def postprocess_class_docs(docs: imy.docstrings.ClassDocs) -> None:
keep = False
# Check if it's explicitly excluded
if not docs.metadata.public:
if not func.metadata.public:
keep = False
# Strip it out, if necessary

View File

@@ -22,7 +22,7 @@ def main() -> None:
# Make sure there are no uncommitted changes
process = subprocess.run(
["git", "status", "--porcelain"],
["git", "status", "--porcelain", "--untracked-files=no"],
check=True,
capture_output=True,
text=True,