-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-133117: Run mypy on tomllib
in CI
#133118
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
Conversation
Lib/tomllib/_parser.py
Outdated
@@ -214,7 +214,7 @@ class Flags: | |||
EXPLICIT_NEST = 1 | |||
|
|||
def __init__(self) -> None: | |||
self._flags: dict[str, dict] = {} | |||
self._flags: dict[str, dict[Any, Any]] = {} |
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.
It is fully typed already, we just need to run the CI if something changes.
Seems it wasn't fully typed already?
Please can you also submit these changes to https://github.com/hukkin/tomli ?
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.
Should I do it before or after this PR?
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'd suggest there first, because we're sort of downstream, but no strong preference from me.
Let's ask @hukkin, @encukou and @hauntsaninja.
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.
Done: hukkin/tomli#257
merging main so CLA can possibly get unstuck :( |
I will keep this open for a day or so, waiting for others' feedback :) |
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
(cherry picked from commit 5ea9010) Co-authored-by: sobolevn <mail@sobolevn.me>
GH-133192 is a backport of this pull request to the 3.13 branch. |
Now I will work on enabling |
tomllib
stdlib folder #133117