Skip to content

Missing entries in QtMultimedia #7

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

Open
rt121212121 opened this issue Jun 12, 2022 · 0 comments
Open

Missing entries in QtMultimedia #7

rt121212121 opened this issue Jun 12, 2022 · 0 comments

Comments

@rt121212121
Copy link

Firstly, let me say thank you for these stubs. They are a huge help, and I am using them and mypy has suddenly identified long standing bugs in UI-related code, it could not find with the PyQt5 stubs. Here are some minor reports of possible incorrectness, in case they're of use.

Python 3.10.2 (Windows 10 x64).
Mypy 0,950 pip package.
PyQt6 6.3.0 pip package.

I am using the tip of main f623a64 installed.

QtCore.QByteArray:

        device_id: bytes = b'whatever'
        # This is an `__init__`  overload that is present in the stubs and errors when the code runs.
        video_input_id = QByteArray(len(device_id), device_id)
        # This is an `__init__`  overload that is not present in the stubs but is accepted when the code runs.
        video_input_id = QByteArray(device_id) # type: ignore[call-overload]

QtMultimedia.QVideoSink:

        # `videoFrameChanged` is not present in the stubs, and is only referred in a side comment in the official Qt6 documentation. It is present when the code runs.
        self._video_sink.videoFrameChanged.connect( # type: ignore[attr-defined]
            self._on_frame_available)
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