Skip to content

Disable annotation_typing - #2902

Draft
mdboom wants to merge 2 commits into
NVIDIA:mainfrom
mdboom:annotation-typing
Draft

mdboom wants to merge 2 commits into
NVIDIA:mainfrom
mdboom:annotation-typing

Conversation

@mdboom

@mdboom mdboom commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

A possible implementation of #2894.

This should give us something to discuss -- about whether this is an improvement or not.

My 2c -- keeping "semantically meaningful typing" separate from "annotation-only typing" has some upsides, but it creates additional redundancy that could be confusing.

As an aside, this did identify a few places where runtime type checking is performed multiple times unnecessarily, and in any event we should fix that.

@copy-pr-bot

copy-pr-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the cuda.core Everything related to the cuda.core module label Sep 17, 2026
@mdboom

mdboom commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test

@github-actions

Copy link
Copy Markdown
Contributor

@mdboom

mdboom commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test

Comment thread cuda_core/build_hooks.py
"embedsignature": True,
"warn.deprecated.IF": False,
"freethreading_compatible": True,
"annotation_typing": False,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.core Everything related to the cuda.core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants