Skip to content

Commit

Permalink
Fixed typing
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanHydrogen committed Aug 21, 2024
1 parent 104cbe3 commit a0a619b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyobs_cloudcover/pipeline/night/pipeline_options.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import Dict, Any
from typing import Dict, Any, cast

from pyobs_cloudcover.pipeline.night.altaz_grid_generator.altaz_grid_options import AltAzGridOptions
from pyobs_cloudcover.pipeline.night.catalog.catalog_constructor_options import CatalogConstructorOptions
Expand Down Expand Up @@ -41,7 +41,7 @@ def from_dict(cls, options: Dict[str, Dict[str, Any]]) -> NightPipelineOptions:
lim_mag_map_generator_options = LimMagnitudeMapGeneratorOptions.from_dict(options.get("lim_mag_map", {}))
cloud_map_generator_options = CloudMapGeneratorOptions.from_dict(options.get("cloud_map", {}))
altaz_grid_generator = AltAzGridOptions.from_dict(options.get("altaz_grid", {}))
moon_apparent_size = options.get("moon_apparent_size", 10)
moon_apparent_size = cast(float, options.get("moon_apparent_size", 10.0))

return cls(model_options,
preprocessor_options,
Expand Down

0 comments on commit a0a619b

Please sign in to comment.