Skip to content

Commit

Permalink
Fix 'unexpected version' warning when carotpy missing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukelbd committed Sep 11, 2021
1 parent ae98378 commit 6dbab1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proplot/internals/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, version):
if isinstance(version, Real):
version = str(version)
if not isinstance(version, str):
version = '.'.join(version)
version = '.'.join(map(str, version))
major, minor, *_ = version.split('.')
major, minor = int(major or 0), int(minor or 0)
except Exception:
Expand Down

0 comments on commit 6dbab1b

Please sign in to comment.