Skip to content

Commit

Permalink
using Type for typing
Browse files Browse the repository at this point in the history
  • Loading branch information
seb5g committed May 17, 2024
1 parent 4cf81f0 commit 7157e6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pymodaq/control_modules/daq_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from numbers import Number
from random import randint
import sys
from typing import List, Tuple, Union, Optional
from typing import List, Tuple, Union, Optional, Type
import numpy as np

from qtpy.QtCore import QObject, Signal, QThread, Slot, Qt, QTimer
Expand Down
4 changes: 2 additions & 2 deletions src/pymodaq/control_modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@author: Sebastien Weber
"""
from random import randint
from typing import Optional
from typing import Optional, Type

from easydict import EasyDict as edict

Expand Down Expand Up @@ -354,7 +354,7 @@ class ParameterControlModule(ParameterManager, ControlModule):

_update_settings_signal = Signal(edict)

listener_class: type[ActorListener] = ActorListener
listener_class: Type[ActorListener] = ActorListener

def __init__(self, **kwargs):
QObject.__init__(self)
Expand Down

0 comments on commit 7157e6a

Please sign in to comment.