Skip to content
Snippets Groups Projects
Commit 6dfb7640 authored by David Schäfer's avatar David Schäfer
Browse files

python 3.9 compat

parent 99cb0368
No related branches found
No related tags found
1 merge request!797reduce the number of type checking errors
Pipeline #199536 passed with stages
in 7 minutes and 52 seconds
This commit is part of merge request !797. Comments created here will be created in the context of that merge request.
......@@ -8,7 +8,7 @@
from __future__ import annotations
import abc
from typing import TypeVar
from typing import TypeVar, Union
import numpy as np
import pandas as pd
......@@ -25,8 +25,8 @@ __all__ = [
T = TypeVar("T")
ArrayLike = TypeVar("ArrayLike", np.ndarray, pd.Series, pd.DataFrame)
ExternalFlag = str | float | int
FieldType = str | list[str | list[str]]
ExternalFlag = Union[str, float, int]
FieldType = Union[str, list[Union[str, list[str]]]]
# needed for deeper type hinting magic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment