Skip to content

Reduce Any usage in type stubs - #2493

Merged
WyattBlue merged 1 commit into
masterfrom
patch
Oct 28, 2026
Merged

WyattBlue merged 1 commit into
masterfrom
patch

Conversation

@WyattBlue

Copy link
Copy Markdown
Member

Replace Any with precise types where the runtime accepts a known set: AVRational operators, VideoFrame reformat kwargs, numpy arrays, av.open() file and io_open, stream selectors, and Graph.add() args.

Packet[Any], add_stream() **kwargs, and Container.file/open_files keep Any.

Replace Any with precise types where the runtime accepts a known set:
AVRational operators, VideoFrame reformat kwargs, numpy arrays, av.open()
file and io_open, stream selectors, and Graph.add() args.

Packet[Any], add_stream() **kwargs, and Container.file/open_files keep Any.
@WyattBlue
WyattBlue merged commit 6434871 into master Oct 28, 2026
10 checks passed
@WyattBlue
WyattBlue deleted the patch branch October 28, 2026 01:38
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