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
Calling parse(version, loose) can return None when the provided version is not a strictly semantic version. This case is not handled when parse(version, loose) is called from valid(version, loose):
# semver.__init__.pydefparse(version, loose):
ifloose:
r=regexp[LOOSE]
else:
r=regexp[FULL]
m=r.search(version)
ifm:
returnsemver(version, loose)
else:
returnNone# this can return Nonedefvalid(version, loose):
v=parse(version, loose)
ifv.version: # here it is just supposed that v has 'version' attributereturnvelse:
returnNone
The text was updated successfully, but these errors were encountered:
Calling
parse(version, loose)
can returnNone
when the provided version is not a strictly semantic version. This case is not handled whenparse(version, loose)
is called fromvalid(version, loose)
:The text was updated successfully, but these errors were encountered: