Skip to content

Commit

Permalink
Fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sayerhs committed Mar 15, 2024
1 parent 726d2d7 commit 0871566
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions caelus/post/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@

from .funcobj import PostProcessing
from .logs import SolverLog

__all__ = [
"PostProcessing",
"SolverLog",
]
Empty file added caelus/py.typed
Empty file.
2 changes: 1 addition & 1 deletion caelus/utils/osutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,6 @@ def split_path(fname):
return (fdir, base, ext)


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

0 comments on commit 0871566

Please sign in to comment.