mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
#14772 Python: Fix type annotations in new wrapper code
This commit is contained in:
1 parent
eac6fa3482
commit
d17930d2b3
3 files changed
+5
-5
No files matched your search
@@ -8,12 +8,12 @@ from .resinsight_classes import EclipseContourMap, GeoMechContourMap
|
||||
|
||||
|
||||
def export_to_text(
|
||||
self,
|
||||
self: View,
|
||||
export_file_name: str = "",
|
||||
export_local_coordinates: bool = False,
|
||||
undefined_value_label: str = "NaN",
|
||||
exclude_undefined_values: bool = False,
|
||||
):
|
||||
) -> None:
|
||||
"""Export the contour map to a text file
|
||||
|
||||
Alias of View.export_contour_map_to_text().
|
||||
|
||||
@@ -343,7 +343,7 @@ def export_well_paths(self, well_paths=None, md_step_size=5.0):
|
||||
)
|
||||
|
||||
|
||||
def _fracture_template_by_id(project, template_id):
|
||||
def _fracture_template_by_id(project: Project, template_id: int) -> FractureTemplate:
|
||||
for template in project.descendants(FractureTemplate):
|
||||
if template.id == template_id:
|
||||
return template
|
||||
|
||||
@@ -7,7 +7,7 @@ import warnings
|
||||
from .pdmobject import add_method
|
||||
from .resinsight_classes import WellLogPlot
|
||||
|
||||
from typing import List
|
||||
from typing import List, Optional
|
||||
|
||||
|
||||
@add_method(WellLogPlot)
|
||||
@@ -19,7 +19,7 @@ def export_data_as_las(
|
||||
capitalize_file_names: bool = False,
|
||||
resample_interval: float = 0.0,
|
||||
convert_to_standard_units: bool = False,
|
||||
export_tvd_rkb: bool = None,
|
||||
export_tvd_rkb: Optional[bool] = None,
|
||||
) -> List[str]:
|
||||
"""Export LAS file(s) for the current plot
|
||||
|
||||
|
||||
Reference in new issue
Block a user