Skip to content

Add type annotations, modernise build, publish sdist, add agent harness#275

Merged
letmaik merged 73 commits intomainfrom
copilot/add-type-stubs-for-rawpy
Feb 11, 2026
Merged

Add type annotations, modernise build, publish sdist, add agent harness#275
letmaik merged 73 commits intomainfrom
copilot/add-type-stubs-for-rawpy

Conversation

Copy link
Contributor

Copilot AI commented Jan 26, 2026

Fixes #262

Copilot AI and others added 3 commits January 26, 2026 23:45
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
Copilot AI requested a review from letmaik January 26, 2026 23:51
Copilot AI and others added 2 commits January 27, 2026 00:08
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 letmaik changed the title Add comprehensive type annotations and PEP 561 compliance Add type annotations Feb 9, 2026
@letmaik letmaik changed the title Add type annotations Add type annotations, modernise build, add agent harness Feb 10, 2026
@letmaik letmaik changed the title Add type annotations, modernise build, add agent harness Add type annotations, modernise build, publish sdist, add agent harness Feb 10, 2026
@letmaik letmaik merged commit e333e15 into main Feb 11, 2026
120 checks passed
@letmaik letmaik deleted the copilot/add-type-stubs-for-rawpy branch February 11, 2026 08:39
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.

typing

2 participants

Comments