Skip to content

feat: validate mypyc_attr args - #69

Open
BobTheBuidler wants to merge 5 commits into
python:masterfrom
BobTheBuidler:patch-1
Open

feat: validate mypyc_attr args#69
BobTheBuidler wants to merge 5 commits into
python:masterfrom
BobTheBuidler:patch-1

Conversation

@BobTheBuidler

@BobTheBuidler BobTheBuidler commented Oct 1, 2025

Copy link
Copy Markdown

This PR implements validation for mypyc_attr arguments and more informational type hints for its signature

Sometimes I'll prototype a design in pure-python before I compile it for the first time, this would be helpful for validating the prototype before spending time compiling.

This PR implements validation for `mypyc_attr` arguments and more informational type hints for its signature
Comment thread mypy_extensions.py
]

class MypycAttrs(TypedDict):
native_class: NotRequired[bool]

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

are there others? I was looking thru the docs and couldn't find any good central resource on this

Comment thread mypy_extensions.py

# TODO: We may want to try to properly apply this to any type
# variables left over...
# TODO: We may want to try to properly apply this to any type variables left over...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

this just looked silly as a multiline comment once the block above was added

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

Labels

None yet

1 participant