Skip to content

Commit

Permalink
fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Nov 28, 2023
1 parent 9b7df3f commit 4bf10e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions STACpopulator/implementations/CMIP6_UofT/add_CMIP6.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import os
from datetime import datetime
from typing import Any, List, Literal, MutableMapping, NoReturn, Optional
from typing import Any, List, Literal, MutableMapping, NoReturn, Optional, Union

import pydantic_core
import pyessv
Expand Down Expand Up @@ -108,7 +108,7 @@ def __init__(
data_loader: GenericLoader,
update: Optional[bool] = False,
session: Optional[Session] = None,
config_file: Optional[os.PathLike[str]] = None,
config_file: Optional[Union[os.PathLike[str], str]] = None,
) -> None:
"""Constructor
Expand Down
4 changes: 2 additions & 2 deletions STACpopulator/populator_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
from abc import ABC, abstractmethod
from datetime import datetime
from typing import Any, Optional, MutableMapping
from typing import Any, MutableMapping, Optional, Union

import pystac
from requests.sessions import Session
Expand All @@ -27,7 +27,7 @@ def __init__(
data_loader: GenericLoader,
update: Optional[bool] = False,
session: Optional[Session] = None,
config_file: Optional[os.PathLike[str]] = "collection_config.yml",
config_file: Optional[Union[os.PathLike[str], str]] = "collection_config.yml",
) -> None:
"""Constructor
Expand Down

0 comments on commit 4bf10e8

Please sign in to comment.