-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix version library conflict #1026
Conversation
chen3feng
commented
Oct 11, 2023
- distutils is deprecated and was removed since python 3.12
- packanging is not a stdlib
- distutils is deprected and removed from 3.12 - packaging is not a stdlib
for i, obj in enumerate(components): | ||
try: | ||
components[i] = int(obj) | ||
except ValueError: |
Check notice
Code scanning / CodeQL
Empty except Note
# instance of your version class) | ||
|
||
|
||
class StrictVersion(Version): |
Check warning
Code scanning / CodeQL
`__eq__` not overridden when adding attributes Warning
'__eq__'
version
The class 'StrictVersion' does not override
'__eq__'
version
The class 'StrictVersion' does not override
'__eq__'
prerelease
The class 'StrictVersion' does not override
'__eq__'
prerelease
# have a conception that matches common notions about version numbers. | ||
|
||
|
||
class LooseVersion(Version): |
Check warning
Code scanning / CodeQL
`__eq__` not overridden when adding attributes Warning
'__eq__'
vstring
The class 'LooseVersion' does not override
'__eq__'
version
def __repr__(self): | ||
return "LooseVersion ('%s')" % str(self) | ||
|
||
def _cmp(self, other): |
Check notice
Code scanning / CodeQL
Explicit returns mixed with implicit (fall through) returns Note