-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Type-hints: update to pass mypy checks with types-docutils 0.21.0.20240704 #12511
Type-hints: update to pass mypy checks with types-docutils 0.21.0.20240704 #12511
Commits on Jul 4, 2024
-
Type-hints: update to pass mypy checks with types-docutils update fro…
…m 2024-07-04. * Reporter.get_source_and_line is added at runtime by the ``RSTState.runtime_init`` method. * Pass the RST parser state's ``Inliner`` when calling class roles (could this reflect an interface change, or is it a bug?). * Add a RST-parser-context generic type argument to ``RSTState`` type-hints.
Configuration menu - View commit details
-
Copy full SHA for 1b04ddb - Browse repository at this point
Copy the full SHA 1b04ddbView commit details -
Tests: type-hints: update to pass mypy checks.
A TypeVar is _not_ added here; the RSTState's generic type argument would only appear in a function return signature, and I'm not sure I can figure out what it _should_ be based on the way an RSTState object is instantiated. Relates-to commit 1b04ddb.
Configuration menu - View commit details
-
Copy full SHA for ba2abcc - Browse repository at this point
Copy the full SHA ba2abccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fc3a85 - Browse repository at this point
Copy the full SHA 8fc3a85View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2e59bc - Browse repository at this point
Copy the full SHA e2e59bcView commit details -
Type-hints: workaround: partially-replace typevar usage from commit 1…
…b04ddb with ``Any`` generic type arg.
Configuration menu - View commit details
-
Copy full SHA for 4ff9627 - Browse repository at this point
Copy the full SHA 4ff9627View commit details
Commits on Jul 6, 2024
-
Code review feedback: replace
TypeVar
withtyping.Any
since t……he type is unused/unbound. Ref: sphinx-doc#12511 (comment)
Configuration menu - View commit details
-
Copy full SHA for 3378b0b - Browse repository at this point
Copy the full SHA 3378b0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bc74ad - Browse repository at this point
Copy the full SHA 7bc74adView commit details -
Configuration menu - View commit details
-
Copy full SHA for c31b252 - Browse repository at this point
Copy the full SHA c31b252View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f77102 - Browse repository at this point
Copy the full SHA 3f77102View commit details