Dev-iL commented on PR #37585:
URL: https://github.com/apache/airflow/pull/37585#issuecomment-1956209937
In #37575, @Taragolis used `from packaging.version import Version` instead
of `parse`, presumably because `parse` is just an alias for `Version`,
```python
def parse(version: str) -> "Version":
"""Parse the given version string.
>>> parse('1.0.dev1')
<Version('1.0.dev1')>
:param version: The version string to parse.
:raises InvalidVersion: When the version string is not a valid version.
"""
return Version(version)
```
Perhaps we should agree on a uniform way to import this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]