File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 10
10
from typing import Optional
11
11
from typing import Union
12
12
13
+ from typing_extensions import override
14
+
13
15
14
16
class EndUseOption (Enum ):
15
17
"""
@@ -127,6 +129,7 @@ def __post_init__(self):
127
129
if not isinstance (self .params , MappingProxyType ):
128
130
object .__setattr__ (self , 'params' , MappingProxyType (self .params ))
129
131
132
+ @override
130
133
def __hash__ (self ) -> int :
131
134
"""
132
135
Computes a hash based on the content of the parameters.
@@ -181,6 +184,7 @@ def __setstate__(self, state: dict):
181
184
# Restore the instance's dictionary
182
185
self .__dict__ .update (state )
183
186
187
+ @override
184
188
def as_file_path (self ) -> Path :
185
189
"""
186
190
Creates a temporary file representation of the parameters on demand.
@@ -209,6 +213,7 @@ def as_file_path(self) -> Path:
209
213
object .__setattr__ (self , '_cached_file_path' , file_path )
210
214
return file_path
211
215
216
+ @override
212
217
def get_output_file_path (self ) -> Path :
213
218
"""Returns a unique path for the GEOPHIRES output file."""
214
219
return Path (tempfile .gettempdir (), f'geophires-result_{ self ._instance_id !s} .out' )
You can’t perform that action at this time.
0 commit comments