Skip to content

Commit b924feb

Browse files
committed
Fix up type hints
1 parent 68fd6c5 commit b924feb

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/pandas_openscm/accessors/dataframe.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,12 @@ def update_index_levels_from_other(
840840
update_sources: dict[
841841
Any,
842842
tuple[
843-
Any | tuple[Any, ...],
843+
Any,
844844
Callable[[Any], Any] | dict[Any, Any] | pd.Series[Any],
845+
]
846+
| tuple[
847+
tuple[Any, ...],
848+
Callable[[tuple[Any, ...]], Any] | dict[Any, Any] | pd.Series[Any],
845849
],
846850
],
847851
copy: bool = True,

src/pandas_openscm/index_manipulation.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,12 @@ def update_index_levels_from_other_func(
613613
update_sources: dict[
614614
Any,
615615
tuple[
616-
Any | tuple[Any, ...],
616+
Any,
617617
Callable[[Any], Any] | dict[Any, Any] | pd.Series[Any],
618+
]
619+
| tuple[
620+
tuple[Any, ...],
621+
Callable[[tuple[Any, ...]], Any] | dict[Any, Any] | pd.Series[Any],
618622
],
619623
],
620624
copy: bool = True,
@@ -693,8 +697,12 @@ def update_levels_from_other(
693697
update_sources: dict[
694698
Any,
695699
tuple[
696-
Any | tuple[Any, ...],
700+
Any,
697701
Callable[[Any], Any] | dict[Any, Any] | pd.Series[Any],
702+
]
703+
| tuple[
704+
tuple[Any, ...],
705+
Callable[[tuple[Any, ...]], Any] | dict[Any, Any] | pd.Series[Any],
698706
],
699707
],
700708
remove_unused_levels: bool = True,

0 commit comments

Comments
 (0)