Skip to content

Righttyper typing & corrections#106

Merged
ajslater merged 11 commits intodevelopfrom
righttyper
Apr 16, 2026
Merged

Righttyper typing & corrections#106
ajslater merged 11 commits intodevelopfrom
righttyper

Conversation

@ajslater
Copy link
Copy Markdown
Owner

No description provided.

ajslater and others added 11 commits April 12, 2026 23:10
Fixes 68 basedpyright errors and 51 ty errors introduced by the
automated rightyper pass. Changes are annotation-only.

- PathInfo.__init__ path_info parameter widened from None to PathInfo | None
- Removed spurious self: "picopt.xxx.Y" annotations naming wrong modules
- Simplified **kwargs bogus unions to Any for variadic super().__init__ passthroughs
- config/handlers.py handler_stages/convert_chain/native types widened to proper base types
- scheduler.py _trigger_fail_fast/_cancel_subtree widened Exception to BaseException | None
- detect_format.py filtered image.info keys to str; suppressed dynamic mpinfo attr
- pil_convertible _file_format image_class widened from BmpImageFile to Image
- tar.py removed type[TarGzDetector] cls annotation violating LSP
- tests: PosixPath -> Path; ts:None/config:None -> float|None/dict|None
- Cleaned unused TYPE_CHECKING imports left behind after removing bad annotations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ajslater ajslater merged commit 96d1a1b into develop Apr 16, 2026
2 checks passed
@ajslater ajslater deleted the righttyper branch April 29, 2026 22:04
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.

1 participant