Skip to content

Commit 34e4a62

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9186f7e commit 34e4a62

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

astroid/brain/brain_qt.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@
1010
from astroid.manager import AstroidManager
1111

1212

13-
def _looks_like_signal(node: nodes.FunctionDef, signal_name: str ="pyqtSignal") -> bool:
13+
def _looks_like_signal(
14+
node: nodes.FunctionDef, signal_name: str = "pyqtSignal"
15+
) -> bool:
1416
# Detect a PySide2 or PySide6 signal, the class changed locations as of QT 5ish
1517
if node.qname().partition(".")[0] in {"PySide2", "PySide6"}:
16-
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+
)
1721

1822
if "__class__" in node.instance_attrs:
1923
try:

0 commit comments

Comments
 (0)