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

Import error due to tuple[int, int] #2

Open
shaharyuval opened this issue Jun 24, 2024 · 0 comments
Open

Import error due to tuple[int, int] #2

shaharyuval opened this issue Jun 24, 2024 · 0 comments

Comments

@shaharyuval
Copy link

While importing webcam, I get an error in the following _video_recoder.py : 10:

class _VideoRecorder:
    def __init__(self, output_path: str, frame_size_hw: tuple[int, int],
                 not_override: bool = False,
                 fps: int = 30):

Replacing tuple with Tuple from the typing module fixes the problem.

It appears to be Python doesn't like a mutable datatype instead of the immutable types in the typing package.

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

No branches or pull requests

1 participant