ffmpeg-python icon indicating copy to clipboard operation
ffmpeg-python copied to clipboard

Typing annotation

Open Conchylicultor opened this issue 3 years ago • 3 comments

Adding typing annotation to this project would allow VSCode and other editors to have auto-complete and auto-documentation on hover.

Currently there's auto-completion for ffmpeg., but not stream. after the first stream is returned. It would greatly improve usability and discoverability.

I'm not talking about typing annotation for arguments, but just return value def input(*args, **kwargs) -> Stream:, def trim(*args, **kwargs) -> Stream:,...

Conchylicultor avatar Dec 06 '22 16:12 Conchylicultor

I'm also interested in this. Though, I wonder what the situation is regarding official releases. The last one in pypi is from July 2019. If there are plans to release more official releases, the community could come in help with typing annotations.

mattia-lecci avatar Jan 25 '23 10:01 mattia-lecci

I also encountered this problem, and ultimately, I decided to implement a typed version available at https://github.com/livingbio/typed-ffmpeg.

lucemia avatar Feb 21 '24 15:02 lucemia