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

Skip to content

stream.dash: fix typing#6807

Merged
bastimeyer merged 2 commits into
streamlink:masterfrom
bastimeyer:stream/dash/fix-typing
Jan 31, 2026
Merged

stream.dash: fix typing#6807
bastimeyer merged 2 commits into
streamlink:masterfrom
bastimeyer:stream/dash/fix-typing

Conversation

@bastimeyer

Copy link
Copy Markdown
Member

No description provided.

- Move TypeVars and TypeAliases to the TYPE_CHECKING block at the top
- Rename static methods of `MPDParsers`, to precent naming collisions:
  - `MPDParsers.datetime()` to `MPDParsers.parse_datetime()`
  - `MPDParsers.timedelta()` to `MPDParsers.parse_timedelta()`
- Add `MPDParsers.bandwidth()`
- Fix typing of `MPDParsers.range()`
- Fix overloaded typing data of `MPDNode.attr()`:
  - Ensure that all kinds of argument combinations are matched
  - Use typing.Literal for the required argument
  - Remove unneeded type overrides for certain attr() calls
- Remove unneeded type error suppression comments
- Add overloaded typing data to `_SegmentBaseType._find_default()`
- Fix other minor typing issues
@bastimeyer bastimeyer force-pushed the stream/dash/fix-typing branch from 3c23fa1 to 098c872 Compare January 31, 2026 12:39
@bastimeyer bastimeyer merged commit b5f77e8 into streamlink:master Jan 31, 2026
25 checks passed
@bastimeyer bastimeyer deleted the stream/dash/fix-typing branch January 31, 2026 12:44
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