We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca2e6b4 commit f36d3b4Copy full SHA for f36d3b4
src/stagpy/error.py
@@ -5,7 +5,7 @@
5
import typing
6
7
if typing.TYPE_CHECKING:
8
- from os import PathLike
+ from pathlib import Path
9
10
from .stagyydata import StagyyData
11
from .step import Step
@@ -76,7 +76,7 @@ class NoParFileError(StagpyError):
76
parfile (PathLike): the expected path of the par file.
77
"""
78
79
- def __init__(self, parfile: PathLike):
+ def __init__(self, parfile: Path):
80
self.parfile = parfile
81
super().__init__(f"{parfile} file not found")
82
@@ -93,7 +93,7 @@ class ParsingError(StagpyError):
93
msg (str): error message.
94
95
96
- def __init__(self, file: PathLike, msg: str):
+ def __init__(self, file: Path, msg: str):
97
self.file = file
98
self.msg = msg
99
super().__init__(file, msg)
0 commit comments