-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from hephy-dd/type_hints
Adding missing type hints
- Loading branch information
Showing
67 changed files
with
1,069 additions
and
1,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from .driver import Driver | ||
|
||
__all__ = ["Driver"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from .venus1 import Venus1 | ||
|
||
__all__ = ["Venus1"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from .itc import ITC | ||
|
||
__all__ = ["ITC"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
from abc import ABC, abstractmethod | ||
from abc import ABC | ||
|
||
|
||
class Driver(ABC): | ||
"""Base class for instrument drivers.""" | ||
|
||
def __init__(self, resource): | ||
def __init__(self, resource) -> None: | ||
self.resource = resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
from abc import abstractmethod | ||
from typing import List | ||
|
||
from .instrument import Instrument | ||
|
||
__all__ = ["SwitchingMatrix"] | ||
|
||
|
||
class SwitchingMatrix(Instrument): | ||
CHANNELS: List[str] = [] | ||
CHANNELS: list[str] = [] | ||
|
||
@property | ||
@abstractmethod | ||
def closed_channels(self) -> List[str]: ... | ||
def closed_channels(self) -> list[str]: ... | ||
|
||
@abstractmethod | ||
def close_channels(self, channels: List[str]) -> None: ... | ||
def close_channels(self, channels: list[str]) -> None: ... | ||
|
||
@abstractmethod | ||
def open_channels(self, channels: List[str]) -> None: ... | ||
def open_channels(self, channels: list[str]) -> None: ... | ||
|
||
@abstractmethod | ||
def open_all_channels(self) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from .brandbox import BrandBox | ||
from .environbox import EnvironBox | ||
from .shuntbox import ShuntBox | ||
|
||
__all__ = ["BrandBox", "EnvironBox", "ShuntBox"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
from .corvustt import CorvusTT | ||
from .hydra import Hydra | ||
|
||
__all__ = ["CorvusTT", "Hydra"] |
Oops, something went wrong.