refactor: replace deprecated imports from typing

https://peps.python.org/pep-0585/#implementation
This commit is contained in:
2023-12-12 16:42:01 +01:00
parent b1c3b433fc
commit 8472e31c61

View File

@@ -4,7 +4,6 @@ import queue
import threading
import time
import traceback
from typing import List
import h5py
import numpy as np
@@ -147,7 +146,7 @@ class NIDAQWriterService(BECService):
else:
self.scan_is_running = False
def handle_ni_data(self, msgs: List[messages.DeviceMessage]) -> None:
def handle_ni_data(self, msgs: list[messages.DeviceMessage]) -> None:
"""
Receive NI data messages and write them to the writer queue.