From b37317e4f88fa10cd2f01808dd5e8c262afa76df Mon Sep 17 00:00:00 2001 From: Matt Hall Date: Mon, 5 Jun 2023 15:01:57 +0200 Subject: [PATCH] Add missing Optionals --- ecl2df/common.py | 4 ++-- setup.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ecl2df/common.py b/ecl2df/common.py index fcfb4925f..c9aef1e18 100644 --- a/ecl2df/common.py +++ b/ecl2df/common.py @@ -627,8 +627,8 @@ def df2ecl( def generic_ecltable( dframe: pd.DataFrame, keyword: str, - comment: str = None, - renamer: Dict[str, str] = None, + comment: Optional[str] = None, + renamer: Optional[Dict[str, str]] = None, drop_trailing_columns: bool = True, ) -> str: """Construct a typical Eclipse table for data following diff --git a/setup.py b/setup.py index 12ce4b765..6bed5b573 100644 --- a/setup.py +++ b/setup.py @@ -18,8 +18,8 @@ REQUIREMENTS = [ "ecl", "numpy", - "opm>=2020.10.2", # NB: Pypi versions. - "pandas", + "opm>=2020.10.2,<=2022.4", # NB: Pypi versions. + "pandas<2.0", "pyarrow", "pyyaml>=5.1", "treelib",