Skip to content

Comments

Add typing hints#107

Merged
jelmer merged 7 commits intomasterfrom
typing
Aug 3, 2025
Merged

Add typing hints#107
jelmer merged 7 commits intomasterfrom
typing

Conversation

@jelmer
Copy link
Member

@jelmer jelmer commented Aug 3, 2025

This change is Reviewable

jelmer added 4 commits August 3, 2025 17:26
- Add empty py.typed file to fixtures package directory
- Enables external type checkers to recognize fixtures as a typed package
- File is automatically included in distributions via hatchling's 'fixtures*' pattern
- Verified py.typed is included in both editable installs and wheel distributions
- External mypy type checking now works correctly with fixtures package
jelmer added 2 commits August 3, 2025 17:32
Python 3.9 doesn't support generic types in base classes at runtime,
even with 'from __future__ import annotations'. Changed:
- StreamHandler[IO[str]] -> StreamHandler

This fixes the TypeError: 'type' object is not subscriptable error
seen in CI on Python 3.9.
@jelmer jelmer merged commit 06b070b into master Aug 3, 2025
16 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.

1 participant