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
In [1]: from parso.utils import parse_version_string
In [2]: parse_version_string('3.10.0a0')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-70c767a0d0a3> in <module>
----> 1 parse_version_string('3.10.0a0')
~/dev/parso/parso/utils.py in parse_version_string(version)
183 raise TypeError('version must be a string like "3.8"')
184
--> 185 return _parse_version(version)
~/dev/parso/parso/utils.py in _parse_version(version)
132 match = re.match(r'(\d+)(?:\.(\d{1,2})(?:\.\d+)?)?$', version)
133 if match is None:
--> 134 raise ValueError('The given version is not in the right format. '
135 'Use something like "3.8" or "3".')
136
ValueError: The given version is not in the right format. Use something like "3.8" or "3".
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: