Thanks to visit codestin.com
Credit goes to github.com

Skip to content

build: add typing-extensions runtime dep on py310#6813

Merged
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:build/typing-extensions-on-py310
Feb 3, 2026
Merged

build: add typing-extensions runtime dep on py310#6813
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:build/typing-extensions-on-py310

Conversation

@bastimeyer

@bastimeyer bastimeyer commented Feb 3, 2026

Copy link
Copy Markdown
Member

Streamlink requires exceptiongroup as a runtime dependency on py310.
With exceptiongroup ==1.3.0 (2025-05-10), this implicitly added typing-extensions >=4.6.0 as a transitive runtime dependency:
agronholm/exceptiongroup@2a84dfd5599b

We accidentally relied on this implicit transitive runtime dependency on py310 when 8a0bd07 was merged in Streamlink 8.1.0 (2025-12-13).

To fix this implicit runtime dependency, add typing-extensions >=4.1.0 on py310 due to lack of typing.dataclass_transform in the stdlib.
See PEP 681.

We could alternatively backport the dataclass_transform decorator and remove it again when support for py310 ends in October 2026, but since we already depend on exceptiongroup for backporting reasons, there is no need to, unless they declare typing-extensions as a non-runtime dependency in the meantime.

Streamlink requires `exceptiongroup` as a runtime dependency on py310.
With `exceptiongroup ==1.3.0` (2025-05-10), this implicitly added
`typing-extensions >=4.6.0` as a transitive runtime dependency:
agronholm/exceptiongroup@2a84dfd5599b

We accidentally relied on this implicit transitive runtime dependency
on py310 when 8a0bd07 was merged in Streamlink 8.1.0 (2025-12-13).

To fix this implicit runtime dependency, add `typing-extensions >=4.1.0`
on py310 due to lack of `typing.dataclass_transform` in the stdlib.
See PEP 681.

We could alternatively backport the `dataclass_transform` decorator
and remove it again when support for py310 ends in October 2026,
but since we already depend on `exceptiongroup` for backporting reasons,
there is no need to, unless they declare `typing-extensions`
as a non-runtime dependency in the meantime.
@bastimeyer bastimeyer force-pushed the build/typing-extensions-on-py310 branch from f611b3e to 7120366 Compare February 3, 2026 18:57
@bastimeyer bastimeyer merged commit ba57b51 into streamlink:master Feb 3, 2026
19 checks passed
@bastimeyer bastimeyer deleted the build/typing-extensions-on-py310 branch February 3, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant