diff --git a/monai/utils/module.py b/monai/utils/module.py index 1da75370d3..204697ffa1 100644 --- a/monai/utils/module.py +++ b/monai/utils/module.py @@ -567,7 +567,7 @@ def version_leq(lhs: str, rhs: str) -> bool: if has_ver: try: return cast(bool, pkging.version.Version(lhs) <= pkging.version.Version(rhs)) - except pkging.version.Version.InvalidVersion: + except pkging.version.InvalidVersion: return True lhs_, rhs_ = parse_version_strs(lhs, rhs) @@ -594,7 +594,7 @@ def version_geq(lhs: str, rhs: str) -> bool: if has_ver: try: return cast(bool, pkging.version.Version(lhs) >= pkging.version.Version(rhs)) - except pkging.version.Version.InvalidVersion: + except pkging.version.InvalidVersion: return True lhs_, rhs_ = parse_version_strs(lhs, rhs) diff --git a/requirements-dev.txt b/requirements-dev.txt index 79572f099d..72ba210093 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -59,4 +59,3 @@ nvidia-ml-py huggingface_hub pyamg>=5.0.0 git+https://github.com/Project-MONAI/GenerativeModels.git@7428fce193771e9564f29b91d29e523dd1b6b4cd -packaging