1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-14 20:52:56 +01:00

fix: make generate plugin robust to multiline init

instead of str.find, use multiline regex with whitespace
This commit is contained in:
2025-05-21 15:00:24 +02:00
parent 5e73a063f4
commit 152514e4e1
2 changed files with 21 additions and 22 deletions

View File

@@ -48,12 +48,22 @@ class MyWidget(QWidget):
from qtpy.QtWidgets import QWidget
class MyWidget(QWidget):
def __init__(self, parent=None):
super(QWidget, self).__init__(parent)"""
super(QWidget, self).__init__(parent)
""",
"""
from qtpy.QtWidgets import QWidget
class MyWidget(QWidget):
def __init__(self, parent=None):
super(QWidget, self).__init__(parent=parent)
""",
"""
from qtpy.QtWidgets import QWidget
class MyWidget(QWidget):
def __init__(self, parent=None):
super(QWidget, self).__init__(
parent=parent,
other=arguments,
)
""",
]
)