Skip to content

Conversation

velsinki
Copy link
Contributor

Please see the individual commits for the reasoning.

I found these issues using Mypy.

Since `VideoFrame` does not override the `pts` setter/getter, it can
also be `None` here. Instead of writing it out in the stubs, we can just
reuse the definition from `Frame` by removing the stub in `VideoFrame`.
`None` is correctly handled to signify EOF to the buffer, but this
should also be visible in the type stub.
@WyattBlue WyattBlue merged commit 4e786dd into PyAV-Org:main Sep 18, 2025
4 of 6 checks passed
@velsinki
Copy link
Contributor Author

@WyattBlue, thanks for merging so fast 😅

I had missed the typing problem in the tests though. Maybe should add some assertions there to satisfy Mypy?

@WyattBlue
Copy link
Member

Yes, that would be great

@velsinki
Copy link
Contributor Author

Alright, see #2016 👍

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