We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9186f7e commit 34e4a62Copy full SHA for 34e4a62
astroid/brain/brain_qt.py
@@ -10,10 +10,14 @@
10
from astroid.manager import AstroidManager
11
12
13
-def _looks_like_signal(node: nodes.FunctionDef, signal_name: str ="pyqtSignal") -> bool:
+def _looks_like_signal(
14
+ node: nodes.FunctionDef, signal_name: str = "pyqtSignal"
15
+) -> bool:
16
# Detect a PySide2 or PySide6 signal, the class changed locations as of QT 5ish
17
if node.qname().partition(".")[0] in {"PySide2", "PySide6"}:
- return any(cls.qname() == "Signal" for cls in node.instance_attrs.get("__class__", []))
18
+ return any(
19
+ cls.qname() == "Signal" for cls in node.instance_attrs.get("__class__", [])
20
+ )
21
22
if "__class__" in node.instance_attrs:
23
try:
0 commit comments