You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)
The text was updated successfully, but these errors were encountered:
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:
QtMultimedia.QVideoSink:
The text was updated successfully, but these errors were encountered: