We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hiyapyco/__init__.py:25:0: W4901: Deprecated module 'distutils.util' (deprecated-module)
caused by strtobool
strtobool
https://peps.python.org/pep-0632/#migration-advice
so we can use a own implementation or use:
The text was updated successfully, but these errors were encountered:
interim fix for deprecated-module while waiting for #61 ...
396c1f5
minimal own implementation would look like
def strtobool(val): val = val.lower() if val in ("y", "yes", "t", "true", "on", "1"): return 1 elif val in ("n", "no", "f", "false", "off", "0"): return 0 else: raise ValueError("invalid truth value %r" % (val,))
! strtobool returns int, not bool :-?
>>> distutils.util.strtobool('y') 1 >>> type(distutils.util.strtobool('y')) <class 'int'>
Sorry, something went wrong.
fixed in PR #70
release 0.5.6 including the fixes from pr #70 has been released
zerwes
No branches or pull requests
caused by
strtobool
https://peps.python.org/pep-0632/#migration-advice
so we can use a own implementation or use:
The text was updated successfully, but these errors were encountered: