Skip to content

Commit

Permalink
Type annotation in local_script_lib.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvarlia committed Dec 17, 2023
1 parent 656d573 commit e9a80df
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions semeio/workflows/localisation/local_script_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
debug_print,
)

try:
from typing import Self
except ImportError:
from typing_extensions import Self

@dataclass
class Parameter:
Expand Down Expand Up @@ -262,7 +266,7 @@ def write_qc_parameter_surface(
reference_surface_file: str,
param_for_surface: object,
log_level=LogLevel.OFF,
):
)->None:
# pylint: disable=too-many-arguments

if param_for_surface is None or surface_scale is None:
Expand Down Expand Up @@ -463,7 +467,7 @@ def apply_decay(
perp_range: float,
azimuth: float,
use_cutoff: bool = False,
tapering_range: float = None,
tapering_range: float = 1.5,
calculate_qc_parameter: bool = False,
):
# pylint: disable=too-many-arguments,too-many-locals
Expand Down

0 comments on commit e9a80df

Please sign in to comment.