Skip to content

Commit f5437cd

Browse files
committed
Clean up some comments
1 parent 11114dd commit f5437cd

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

src/pytestqt/wait_signal.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -301,22 +301,17 @@ def __init__(self, timeout=5000, raising=True, check_params_cbs=None, order="non
301301
super().__init__(timeout, raising=raising)
302302
self._order = order
303303
self._check_params_callbacks = check_params_cbs
304-
self._signals_emitted = (
305-
[]
306-
) # list of booleans, indicates whether the signal was already emitted
307-
self._signals_map = (
308-
{}
309-
) # maps from a unique Signal to a list of indices where to expect signal instance emits
310-
self._signals = (
311-
[]
312-
) # list of all Signals (for compatibility with _AbstractSignalBlocker)
304+
self._signals_emitted: list[bool] = [] # whether the signal was already emitted
305+
# maps from a unique Signal to a list of indices where to expect signal instance emits
306+
self._signals_map = {}
307+
# list of all Signals (for compatibility with _AbstractSignalBlocker)
308+
self._signals = []
313309
self._slots = [] # list of slot functions
314310
self._signal_expected_index = 0 # only used when forcing order
315311
self._strict_order_violated = False
316312
self._actual_signal_and_args_at_violation = None
317-
self._signal_names = (
318-
{}
319-
) # maps from the unique Signal to the name of the signal (as string)
313+
# maps from the unique Signal to the name of the signal (as string)
314+
self._signal_names = {}
320315
self.all_signals_and_args = [] # list of SignalAndArgs instances
321316

322317
def add_signals(self, signals):

0 commit comments

Comments
 (0)