You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the result from the command line (poetry 1.2.2, reprosyn environment):
Using python3.9 (3.9.14)
Type "help", "copyright", "credits" or "license" for more information.
>>> import reprosyn
>>> import reprosyn.dataset
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/fhoussiau/workspace/reprosyn/src/reprosyn/dataset.py", line 9, in <module>
class Dataset:
File "/Users/fhoussiau/workspace/reprosyn/src/reprosyn/dataset.py", line 40, in Dataset
def read_dataset(dataset: pd.DataFrame | str) -> pd.DataFrame:
TypeError: unsupported operand type(s) for |: 'type' and 'type'
The reason seems to be that the pipe for union has only been added in Python 3.10 (fastapi/typer#371 (comment)). A solution is to add ``future`.
The text was updated successfully, but these errors were encountered:
Here is the result from the command line (poetry 1.2.2, reprosyn environment):
The reason seems to be that the pipe for union has only been added in Python 3.10 (fastapi/typer#371 (comment)). A solution is to add ``future`.
The text was updated successfully, but these errors were encountered: