Skip to content

fix: import on Python 3.8 (typing.* runtime aliases)#18

Merged
adnanhd merged 1 commit into
mainfrom
fix/py38-runtime-imports
Jun 15, 2026
Merged

fix: import on Python 3.8 (typing.* runtime aliases)#18
adnanhd merged 1 commit into
mainfrom
fix/py38-runtime-imports

Conversation

@adnanhd

@adnanhd adnanhd commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Two module-level type aliases used PEP 585 tuple[...] and three used collections.abc.Callable[...], all evaluated at import time and rejected by Python 3.8. Switch those runtime positions to the typing aliases. Lint/format/mypy clean; 183 pass on 3.10; all modules import on a 3.8 interpreter.

- convert two module-level type aliases (ObserveTargets/ReporterMethods)
  from PEP 585 tuple[...] to typing.Tuple; the RHS is evaluated at import
- import Callable from typing where it builds Handler / ContextHandler
  aliases at runtime (collections.abc generics are 3.9+)
@adnanhd adnanhd merged commit 72c7bf2 into main Jun 15, 2026
3 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