Add type annotations, modernise build, publish sdist, add agent harness#275
Merged
Add type annotations, modernise build, publish sdist, add agent harness#275
Conversation
Co-authored-by: letmaik <530988+letmaik@users.noreply.github.com>
Co-authored-by: letmaik <530988+letmaik@users.noreply.github.com>
…rrowing Co-authored-by: letmaik <530988+letmaik@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add type stubs for rawpy package
Add type stubs for IDE autocompletion and static type checking
Jan 26, 2026
Co-authored-by: letmaik <530988+letmaik@users.noreply.github.com>
Co-authored-by: letmaik <530988+letmaik@users.noreply.github.com>
Copilot
AI
changed the title
Add type stubs for IDE autocompletion and static type checking
Replace stub file with inline type annotations
Jan 27, 2026
Co-authored-by: letmaik <530988+letmaik@users.noreply.github.com>
Copilot
AI
changed the title
Replace stub file with inline type annotations
Add inline type annotations for IDE support and static type checking
Jan 27, 2026
- Remove `from __future__ import annotations` (not supported in Cython) - Move typing imports inside TYPE_CHECKING block - Quote all type annotations to avoid runtime errors - This fixes compilation issues while keeping type checker support Co-authored-by: letmaik <530988+letmaik@users.noreply.github.com>
Copilot
AI
changed the title
Add inline type annotations for IDE support and static type checking
Fix Cython type annotations causing CI build failures
Jan 27, 2026
Remove quotes from Optional[int] and Optional[float] type annotations that were causing Cython warnings. These annotations are now unquoted since TYPE_CHECKING protects the imports. Co-authored-by: letmaik <530988+letmaik@users.noreply.github.com>
Copilot
AI
changed the title
Fix Cython type annotations causing CI build failures
Fix Cython type annotation warnings for Optional types
Jan 27, 2026
- Unquote all remaining type annotations in _rawpy.pyx - Fixes compiler crash with complex types like Optional[Tuple[float, float]] - Fixes warnings about quoted type declarations - Cython now successfully compiles the .pyx file without type annotation errors Changes: - RawPy.__enter__: 'RawPy' -> RawPy - RawPy.__exit__: 'Any' -> Any (3 parameters) - RawPy.open_buffer: 'Any' -> Any - RawPy.dcraw_process: 'Optional[Params]' -> Optional[Params] - RawPy.extract_thumb: 'Thumbnail' -> Thumbnail - RawPy.postprocess: 'Optional[Params]' -> Optional[Params], 'np.ndarray' -> np.ndarray - Params.__init__: All quoted type annotations removed including complex types like 'Optional[Tuple[float, float]]' Co-authored-by: letmaik <530988+letmaik@users.noreply.github.com>
Copilot
AI
changed the title
Fix Cython type annotation warnings for Optional types
Fix Cython 3.2.4 compilation by removing quoted type annotations
Jan 28, 2026
letmaik
approved these changes
Feb 10, 2026
This was referenced Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #262