File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
"""Example to drive/show reaktor's lazerbass instrument in pygame."""
2
2
import argparse
3
- import pygame
3
+ import pygame # type: ignore[import]
4
4
import multiprocessing
5
5
import queue
6
6
import logging
7
7
8
+ from typing import Tuple
9
+
8
10
from pythonosc .dispatcher import Dispatcher
9
11
from pythonosc import osc_server
10
12
@@ -86,13 +88,13 @@ def run(self):
86
88
87
89
# client = udp_client.UDPClient(args.client_ip, args.client_port)
88
90
89
- bq = multiprocessing .Queue ()
91
+ bq = multiprocessing .Queue () # type: multiprocessing.Queue[Tuple[str, float]]
90
92
reaktor = ReaktorDisplay (bq )
91
93
92
94
93
95
def put_in_queue (args , value ):
94
96
"""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 ) )
96
98
97
99
98
100
dispatcher = Dispatcher ()
You can’t perform that action at this time.
0 commit comments