File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ # This fixes circular imports for type checking
2+ from __future__ import annotations
3+ from typing import TYPE_CHECKING
4+ if TYPE_CHECKING :
5+ from py_replay_bg .replay .custom_ra import CustomRaBase
6+
17import numpy as np
28import pandas as pd
39
1925from py_replay_bg .data import ReplayBGData
2026from py_replay_bg .environment import Environment
2127from py_replay_bg .dss import DSS
22- from py_replay_bg .replay .custom_ra import CustomRaBase
2328from py_replay_bg .sensors import Sensors
2429
2530
@@ -414,7 +419,7 @@ def simulate(self,
414419 environment : Environment | None ,
415420 dss : DSS | None ,
416421 sensors : Sensors = None ,
417- forcing_Ra : CustomRaBase = None
422+ forcing_Ra : CustomRaBase | None = None
418423 ) -> np .ndarray | tuple [
419424 np .ndarray ,
420425 np .ndarray ,
You can’t perform that action at this time.
0 commit comments