-
Notifications
You must be signed in to change notification settings - Fork 42
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
Types improvements #227
Types improvements #227
Conversation
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #227 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 507 507
Branches 96 96
=========================================
Hits 507 507 ☔ View full report in Codecov by Sentry. |
Hey there! I don't want to actively break Python 3.7 yet, or deviate from cpython/tomllib for little benefit, so closing this. |
Regarding the deviation from the stdlib, understandable, I can also open a PR to cpython to parametrize the patterns? |
Someone could theoretically package it for a distro despite the metadata, change the metadata themselves and test that 3.7 still works, or whatever. The main purpose of this repo currently is to be a backport of tomllib, so perhaps it makes sense to be extra conservative.
I assume cpython may not appreciate such a PR since it doesn't run mypy against tomllib, the type annotations are there only because they were inherited from here. Might be best to avoid the busywork. Especially since they annotate private API, and are not incorrect, simply not as narrow as they could be. |
That is indeed the case, though it might change in the future. (It's not straightforward politically, but also technically since type-checkers ignore stdlib's annotations and use typeshed instead.) |
Was about to say that as well. pyright can't resolve the Anyway, happy to revisit in the future. |
No description provided.