Skip to content

Fix pyright standard mode type errors and add CI type checking#30

Merged
Robertleoj merged 2 commits into
Robertleoj:mainfrom
rshanor:main
May 30, 2026
Merged

Fix pyright standard mode type errors and add CI type checking#30
Robertleoj merged 2 commits into
Robertleoj:mainfrom
rshanor:main

Conversation

@rshanor
Copy link
Copy Markdown
Contributor

@rshanor rshanor commented May 21, 2026

Thanks for the awesome library! Small PR to improve type checking for consumers.

  • Fix OpenCV Scalar type mismatches by using tuples instead of bare ints for color/borderValue args (cv2.fillPoly, cv2.line, cv2.remap, etc.)
  • Fix numpy floating return type in _mad_sigma_1d
  • Add py.typed marker for PEP 561 compliance
  • Add pyright step to test workflow

rshanor and others added 2 commits May 21, 2026 12:58
- Fix OpenCV Scalar type mismatches by using tuples instead of bare ints
  for color/borderValue args (cv2.fillPoly, cv2.line, cv2.remap, etc.)
- Fix numpy floating return type in _mad_sigma_1d
- Add py.typed marker for PEP 561 compliance
- Add pyright step to test workflow
@Robertleoj
Copy link
Copy Markdown
Owner

Glad it's useful, thanks for the PR! LGTM so I'll just merge

@Robertleoj Robertleoj merged commit df8df31 into Robertleoj:main May 30, 2026
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