Skip to content

Commit d24b6ca

Browse files
committed
Fix up type hints more
1 parent b924feb commit d24b6ca

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/pandas_openscm/accessors/dataframe.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,9 @@ def update_index_levels_from_other(
845845
]
846846
| tuple[
847847
tuple[Any, ...],
848-
Callable[[tuple[Any, ...]], Any] | dict[Any, Any] | pd.Series[Any],
848+
Callable[[tuple[Any, ...]], Any]
849+
| dict[tuple[Any, ...], Any]
850+
| pd.Series[Any],
849851
],
850852
],
851853
copy: bool = True,

src/pandas_openscm/index_manipulation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,9 @@ def update_index_levels_from_other_func(
618618
]
619619
| tuple[
620620
tuple[Any, ...],
621-
Callable[[tuple[Any, ...]], Any] | dict[Any, Any] | pd.Series[Any],
621+
Callable[[tuple[Any, ...]], Any]
622+
| dict[tuple[Any, ...], Any]
623+
| pd.Series[Any],
622624
],
623625
],
624626
copy: bool = True,
@@ -702,7 +704,9 @@ def update_levels_from_other(
702704
]
703705
| tuple[
704706
tuple[Any, ...],
705-
Callable[[tuple[Any, ...]], Any] | dict[Any, Any] | pd.Series[Any],
707+
Callable[[tuple[Any, ...]], Any]
708+
| dict[tuple[Any, ...], Any]
709+
| pd.Series[Any],
706710
],
707711
],
708712
remove_unused_levels: bool = True,

0 commit comments

Comments
 (0)