Skip to content

Commit 0871566

Browse files
committed
Fix type issues
1 parent 726d2d7 commit 0871566

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

caelus/post/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@
1414

1515
from .funcobj import PostProcessing
1616
from .logs import SolverLog
17+
18+
__all__ = [
19+
"PostProcessing",
20+
"SolverLog",
21+
]

caelus/py.typed

Whitespace-only changes.

caelus/utils/osutils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,6 @@ def split_path(fname):
246246
return (fdir, base, ext)
247247

248248

249-
def path_or_cwd(pdir: Path) -> Path:
249+
def path_or_cwd(pdir: Path | str | None) -> Path:
250250
"""Sanitize the given path. If None, return current workding directory"""
251251
return Path(abspath(str(pdir))) if pdir is not None else Path.cwd()

0 commit comments

Comments
 (0)