Skip to content

add complex to scalar to avoid raising warnings by linters - #4168

Merged
zcbenz merged 2 commits into
ml-explore:mainfrom
aaishwarymishra:add-complex-scalar
Aug 11, 2026
Merged

add complex to scalar to avoid raising warnings by linters#4168
zcbenz merged 2 commits into
ml-explore:mainfrom
aaishwarymishra:add-complex-scalar

Conversation

@aaishwarymishra

Copy link
Copy Markdown
Contributor

Proposed changes

This pull request makes a small change to the python/mlx/_stub_patterns.txt file by updating the scalar type alias to include the complex type in addition to int, float, and bool. This allows the codebase to support complex numbers where scalar is used.

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

@zcbenz zcbenz left a comment

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.

Thanks!

@zcbenz
zcbenz merged commit a9ab0f6 into ml-explore:main Aug 11, 2026
24 of 28 checks passed
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