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
NOTE: This is only a display error in PyCharm. Execution of the code works fine, and neither VSCode nor pylance nor pyright report any issues.
PyCharm reports a type error on set_global_log_properties():
set_global_log_properties()
This is because the type is defined as dict[str, dict] instead of dict[str, str] in the comment:
According to https://peps.python.org/pep-0484/#arbitrary-argument-lists-and-default-argument-values it should be OK to change the type to str... and in fact, the error goes away.
str
The text was updated successfully, but these errors were encountered:
Thanks for reporting! I'll get this done tomorrow morning 🙂
Sorry, something went wrong.
Fix type-hint on set_global_log_properties
2f3aacb
#60
Published v0.3.29 🙂
merged and published. closing this issue.
No branches or pull requests
Description
NOTE: This is only a display error in PyCharm. Execution of the code works fine, and neither VSCode nor pylance nor pyright report any issues.
PyCharm reports a type error on
set_global_log_properties()
:This is because the type is defined as dict[str, dict] instead of dict[str, str] in the comment:
Suggested solution
According to https://peps.python.org/pep-0484/#arbitrary-argument-lists-and-default-argument-values it should be OK to change the type to
str
... and in fact, the error goes away.The text was updated successfully, but these errors were encountered: