Skip to content

Commit

Permalink
fix typing in older python
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Jul 3, 2023
1 parent a6ca02c commit 4b76b8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/hvps/devices/caen/module.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from functools import cached_property
from typing import List

from ...commands.caen.module import _get_mon_module_command, _get_set_module_command
from ...commands.caen import _write_command
Expand Down Expand Up @@ -44,7 +45,7 @@ def number_of_channels(self) -> int:
return int(response)

@property
def channels(self) -> list[Channel]:
def channels(self) -> List[Channel]:
"""The channels in the module.
Returns:
Expand Down
2 changes: 1 addition & 1 deletion src/hvps/devices/iseg/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def number_of_channels(self) -> int:
return int(response[0])

@property
def channels(self) -> list[Channel]:
def channels(self) -> List[Channel]:
"""The channels in the module.
Returns:
Expand Down

0 comments on commit 4b76b8f

Please sign in to comment.