Skip to content

Commit

Permalink
updating exception packaging, remove packaging from requirement-dev.t…
Browse files Browse the repository at this point in the history
…xt file

Signed-off-by: DuretiShemsi <shemsidureti@gmail.com>
  • Loading branch information
DuretiShemsi committed Aug 3, 2024
1 parent e30869d commit fe1a415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions monai/utils/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@ nvidia-ml-py
huggingface_hub
pyamg>=5.0.0
git+https://github.com/Project-MONAI/GenerativeModels.git@7428fce193771e9564f29b91d29e523dd1b6b4cd
packaging

0 comments on commit fe1a415

Please sign in to comment.