Skip to content

Comments

Remove cython workaround from input container#2167

Merged
WyattBlue merged 1 commit intoPyAV-Org:mainfrom
lgeiger:cleanup-input-container
Feb 19, 2026
Merged

Remove cython workaround from input container#2167
WyattBlue merged 1 commit intoPyAV-Org:mainfrom
lgeiger:cleanup-input-container

Conversation

@lgeiger
Copy link
Contributor

@lgeiger lgeiger commented Feb 19, 2026

it looks like the workaround is not needed anymore in recent versions of Cython: cython/cython#2166

id(kwargs)

streams = self.streams.get(*args, **kwargs)
streams: list[Stream] = self.streams.get(*args, **kwargs)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding some types helps Cython specialise and generate less code

@WyattBlue WyattBlue merged commit 06298f6 into PyAV-Org:main Feb 19, 2026
6 checks passed
@lgeiger lgeiger deleted the cleanup-input-container branch February 19, 2026 14:03
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.

2 participants