Skip to content

Commit 610e243

Browse files
committed
Fix typing in this example
1 parent 2eba40b commit 610e243

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/reaktor_lazerbass.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
"""Example to drive/show reaktor's lazerbass instrument in pygame."""
22
import argparse
3-
import pygame
3+
import pygame # type: ignore[import]
44
import multiprocessing
55
import queue
66
import logging
77

8+
from typing import Tuple
9+
810
from pythonosc.dispatcher import Dispatcher
911
from pythonosc import osc_server
1012

@@ -86,13 +88,13 @@ def run(self):
8688

8789
# client = udp_client.UDPClient(args.client_ip, args.client_port)
8890

89-
bq = multiprocessing.Queue()
91+
bq = multiprocessing.Queue() # type: multiprocessing.Queue[Tuple[str, float]]
9092
reaktor = ReaktorDisplay(bq)
9193

9294

9395
def put_in_queue(args, value):
9496
"""Put a named argument in the queue to be able to use a single queue."""
95-
bq.put([args[0], value])
97+
bq.put((args[0], value))
9698

9799

98100
dispatcher = Dispatcher()

0 commit comments

Comments
 (0)