My main interest is research in machine learning, but here I’m just trying to enjoy coding in a world dominated by AI.
Extended MLX’s numerical API with a new operation across the CPU, Metal, and CUDA backends. Improved Python type definitions to match runtime behavior, fixing type-checking errors for valid API calls.
- Added
signbitoperation forcpu,metalandcudafor all supporteddtypeand with vectorization. #4959 - Corrected scalar-input type annotations for 33 operations. #4978
- Corrected the optional
stepargument inarange. #4855 - Fixed optional metadata typing and documentation for
save_gguf. #4942 - Aligned positional and keyword argument signatures for
astype,roll,count_nonzero, andvecdot. #4944
Improved type analysis, diagnostic suggestions, and Python environment discovery.
- Added suggestions to use
self.<attribute>when an unresolved name matches an instance attribute. #18444 - Recognized lambdas as
types.FunctionTypeinstances, enabling typed access to attributes such as__code__. #18431 - Added support for legacy generic annotations such as
typing.List[T]andtyping.Dict[K, V]. #18404 - Added diagnostics for functions whose implicit
Nonereturn conflicts with their return annotation. #18359 - Added
async withsuggestions when asynchronous context managers are used in regularwithstatements. #18299 - Added Python environment discovery through
CONDA_PREFIX, supporting Conda and Pixi environments. #18267