Skip to content

add_stream(, rate=float type) causes an error in 13.1.0 #1572

Answered by WyattBlue
nagadomi asked this question in 4. Bugs
Discussion options

You must be logged in to vote

This is a consequence of

Permit only setting time_base with a Fraction, as mypy is unable to respect different types in getters vs setters.

because they both use the same utility function. While I think it's okay for PyAV to raise this error (framerate is AVRational, not float64), documentation should have been changed and mypy should be flagging this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nagadomi
Comment options

Answer selected by nagadomi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants