Skip to content

Instantly share code, notes, and snippets.

@luziferius
luziferius / patch_qt_connection_type.py
Last active October 5, 2025 14:19
PySide6 Qt.ConnectionType.__or__(other) implementation
# Copyright (C) 2025 Thomas Hess
# License: GPLv3+
from PySide6.QtCore import Qt
ConnectionType = Qt.ConnectionType
def ConnectionType__or__(self: ConnectionType, other: ConnectionType):
if not isinstance(other, ConnectionType):
raise TypeError(