Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using pathlib.Path for av.open #1231

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Allow using pathlib.Path for av.open #1231

merged 1 commit into from
Nov 22, 2023

Conversation

WyattBlue
Copy link
Member

@WyattBlue WyattBlue commented Nov 20, 2023

Closes #1181. I also cleaned up the styling and logic along the way in the open function.

One mistake that I spotted but did not fix (want to keep the commit focused) is that the docs say only float (or tuple[float, float] is allowed for timeout but there is nothing stopping the user from using int or even fractions.Fraction. I think it would be best to clarify this behavior in a follow up PR.

@WyattBlue WyattBlue linked an issue Nov 20, 2023 that may be closed by this pull request
@hmaarrfk
Copy link
Contributor

upcasting int to float is typically an "ok" thing to do.

@WyattBlue WyattBlue merged commit 39832c4 into main Nov 22, 2023
17 checks passed
@WyattBlue WyattBlue deleted the patch-9 branch November 22, 2023 17:50
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.

Allow pathlib.Path object in av.open()
2 participants