-
Notifications
You must be signed in to change notification settings - Fork 4
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
Emergent typing failure #14
Comments
Here's what Gemini had to say about it. Basically, mypy is being unnecessarily nitpicky that I'm using the interface provided by docutils. |
The code passed as recently as 3 months ago. |
Downgrading mypy to 1.7.1 from November, the issue still occurs, so likely the difference is with the typespec for docutils. |
Docutils 0.20.1 from last May is still stable. |
|
Starting with https://pypi.org/project/types-docutils/0.20.0.20240310/, the tests start failing. |
All typeshed libraries are released daily (whenever they have changes). If this is an issue you can pin the version |
Thanks for clarifying, and apologies for being abrasive. I thought what I was looking at was a bunch of insignificant changes, assuming that it wasn't possible for a mostly stable module like docutils to evolve so rapidly, but I now see there are rapid and meaningful changes. I'm grateful for that work. |
Recently, the mypy type checks started failing with the error:
The relevant code is:
jaraco.packaging/jaraco/packaging/sphinx.py
Lines 30 to 42 in 35ad39f
And I traced the definition of that class property to:
https://github.com/docutils/docutils/blob/b768e2626088711dec257b0847b563d02700a712/docutils/docutils/parsers/rst/__init__.py#L316-L317
Essentially:
I don't yet understand how
SidebarLinksDirective
is an instance variable.The text was updated successfully, but these errors were encountered: