Skip to content

Latest commit

 

History

History

README.md

NumType development tools

ufunc.py

Introspect NumPy universal functions (ufuncs) by examining their type signatures.

uv run tool/ufunc.py [-h] [-p] [-f <TABULATE_FORMAT>] <NIN> <NOUT>

promotion.py

Introspect NumPy's scalar promotion rules, as a markdown table (default) or mermaid graph.

uv run promotion.py [-h] [-f {table,graph}] [-d DTYPES]

testgen.py

Generate type tests for NumType's NumPy integration.

uv run tool/testgen.py

stubtest.py

Test type stubs against actual implementations using MyPy's stubtest.

uv run tool/stubtest.py <OPTIONS>

format_ignores.py

Format pyright ignore comments to ensure they are alphabetically sorted with proper spacing.

uv run tool/format_ignores.py [-h] [--pattern PATTERN] [--check] [PATH]