-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Complete typing for logger_utils.py #4134
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
base: main
Are you sure you want to change the base?
Conversation
@@ -126,7 +126,7 @@ def parse_theme(parser: configparser.SectionProxy) -> Theme: | |||
:func:`make_logger`. | |||
|
|||
""" | |||
theme = {key.replace("_", "."): parser[key] for key in parser} | |||
theme: dict[str, Any] = {key.replace("_", "."): parser[key] for key in parser} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not typing.Dict
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be wrong here, but I thought there is no difference between typing.Dict
and dict
anymore, since PEP 585 introduced generic type support for these built-in types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. I was just thinking that you wanted to use typing everywhere ;-)
Hi! Could you please set |
I have continued work on this pull request, the updated pull request is available here: #4230 |
Motivation and Explanation: Why and how do your changes improve the library?
More work on #3375
Reviewer Checklist