-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Followup-to: Fix tests for Python 3.14a7+ (#13514) #13527
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
Followup-to: Fix tests for Python 3.14a7+ (#13514) #13527
Conversation
Relates-to commit a81bcf8.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@AA-Turner this is ready for review; I've left one question/thought about maybe using an f-string in one of the fixups, but could also argue that consistency makes the changeset simpler. |
Thanks @AA-Turner! |
@@ -1421,6 +1425,10 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None: | |||
'io.StringIO': 'my.module.StringIO', | |||
} | |||
actual = do_autodoc(app, 'module', 'target.autodoc_type_aliases', options) | |||
if sys.version_info >= (3, 14, 0, 'alpha', 7): | |||
attr2_typeinfo = () |
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.
@AA-Turner did you just uncover a bug in mypy
? There are two declarations of attr2_typeinfo
, and only one was adjusted by 059ee9c - yet the mypy
lint job succeeded.
Purpose
Fixup some
autodoc
-related tests in a way that handles both before-and-after Py3.14(a7).References