Skip to content

Commit a7ac780

Browse files
committed
Cleanup
1 parent 3442bf7 commit a7ac780

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ docs = [
102102
"sphinx-rtd-theme>=3.0",
103103
"sphinx-click",
104104
"sphinx_automodapi",
105-
"sphinx_autodoc_typehints",
105+
"sphinx_toolbox",
106106
]
107107
lint = [
108108
"ruff",

src/pyobo/constants.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,21 @@
132132
class DatabaseKwargs(TypedDict):
133133
"""Keyword arguments for database CLI functions."""
134134

135+
#: Should strict identifier parsing be enabled?
135136
strict: bool
137+
#: Should re-download and re-processing be forced?
136138
force: bool
139+
#: Should re-processing be forced?
137140
force_process: bool
138-
skip_pyobo: bool
141+
142+
#: Should a progress bar be used?
143+
use_tqdm: bool
144+
#: Skip all prefixes lexicographically sorted below the given prefix
139145
skip_below: str | None
146+
#: If true, skips prefixes that are ontologized as sources in PyOBO
147+
skip_pyobo: bool
148+
#: An enumerated set of prefixes to skip
140149
skip_set: set[str] | None
141-
use_tqdm: bool
142150

143151

144152
class SlimGetOntologyKwargs(TypedDict):
@@ -207,12 +215,17 @@ class IterHelperHelperDict(SlimGetOntologyKwargs):
207215
:func:`pyobo.get_ontology` in each iteration.
208216
"""
209217

218+
#: Should a progress bar be used?
210219
use_tqdm: bool
220+
#: Skip all prefixes lexicographically sorted below the given prefix
211221
skip_below: str | None
222+
#: If true, skips prefixes that are ontologized as sources in PyOBO
212223
skip_pyobo: bool
224+
#: An enumerated set of prefixes to skip
213225
skip_set: set[str] | None
214226

215227

228+
#: The ontology format
216229
OntologyFormat: TypeAlias = Literal["obo", "owl", "json", "rdf"]
217230

218231
#: from table 2 of the Functional OWL syntax definition
@@ -228,7 +241,9 @@ class IterHelperHelperDict(SlimGetOntologyKwargs):
228241
class OntologyPathPack(NamedTuple):
229242
"""A format and path tuple."""
230243

244+
#: The ontology format
231245
format: OntologyFormat
246+
#: The path to the ontology file
232247
path: Path
233248

234249

0 commit comments

Comments
 (0)