Skip to content

Commit

Permalink
CLN: Convert Union[..., None] to Optional[...]
Browse files Browse the repository at this point in the history
  • Loading branch information
JB Lovland committed Jan 15, 2024
1 parent f9cfb6e commit db45c9e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/fmu/dataio/dataio.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,9 @@ class ExportData:
# input keys (alphabetic)
access_ssdl: dict = field(default_factory=dict)
aggregation: bool = False
casepath: Union[str, Path, None] = None
casepath: Optional[Union[str, Path]] = None
config: dict = field(default_factory=dict)
content: Union[dict, str, None] = None
content: Optional[Union[dict, str]] = None
depth_reference: str = "msl"
description: Union[str, list] = ""
display_name: Optional[str] = None
Expand All @@ -580,7 +580,7 @@ class ExportData:
parent: str = ""
realization: int = -999
reuse_metadata_rule: Optional[str] = None
runpath: Union[str, Path, None] = None
runpath: Optional[Union[str, Path]] = None
subfolder: str = ""
tagname: str = ""
timedata: Optional[List[list]] = None
Expand Down Expand Up @@ -982,11 +982,11 @@ class InitializeCase: # pylint: disable=too-few-public-methods

# instance
config: dict
rootfolder: Union[str, Path, None] = None
rootfolder: Optional[Union[str, Path]] = None
casename: Optional[str] = None
caseuser: Optional[str] = None
restart_from: Optional[str] = None
description: Union[str, list, None] = None
description: Optional[Union[str, list]] = None
verbosity: str = "CRITICAL"

_metadata: dict = field(default_factory=dict, init=False)
Expand Down Expand Up @@ -1215,7 +1215,7 @@ class AggregatedData:

# instance
aggregation_id: Optional[str] = None
casepath: Union[str, Path, None] = None
casepath: Optional[Union[str, Path]] = None
source_metadata: list = field(default_factory=list)
name: str = ""
operation: str = ""
Expand Down

0 comments on commit db45c9e

Please sign in to comment.