Closed robin523790 closed 1 year ago
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
Thanks for reporting! I'll get this done tomorrow morning 🙂
Published v0.3.29 🙂
merged and published. closing this issue.
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.