Skip to content

Conversation

@TimothyEDawson
Copy link
Owner

Pull request for testing CI changes.

@TimothyEDawson TimothyEDawson force-pushed the python-type-stubs-testing branch 3 times, most recently from 174d595 to 38f744c Compare October 20, 2025 20:50
@TimothyEDawson TimothyEDawson force-pushed the python-type-stubs-testing branch 3 times, most recently from 66acf4a to dd56f17 Compare October 20, 2025 22:23
Adding stubs alongside the Python files to provide type hints for
external use. These are intended to cover the public interface,
including all dynamically-generated attributes.
Moved literal_type_guard to a new _types.py file and added a new
function add_args_to_signature. Made several minor typing improvements
in the course of updating yaml2ck.py.
Only numpy.typing.ArrayLike needs to be explicitly exported, which can
be achieved with the `from X import Y as Y` syntax.
TODO: Update add_args_to_signature to support TypeForm[T] instead of
only type[T] so it can properly accept e.g. Iterable[str].
Includes an initial whitelist to make stubtest pass located at
interfaces/cython/.mypyignore, which should be reduced to the minimal
set of items which cannot be correctly inferred at runtime (e.g.
__cinit__ signatures).
@TimothyEDawson TimothyEDawson force-pushed the python-type-stubs-testing branch from dd56f17 to 1901684 Compare October 20, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants