Skip to content

Commit

Permalink
refactor: Add missing type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Dec 3, 2024
1 parent 126de3b commit 225b047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibolab/_core/instruments/qblox/ast_.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ def dump(self) -> str:

class Instr(Model):
@classmethod
def keyword(cls):
def keyword(cls) -> str:
return CAMEL_TO_SNAKE.sub("_", cls.__name__).lower()

@classmethod
def from_args(cls, *args):
return cls(**dict(zip(cls.model_fields.keys(), args)))

@property
def args(self):
def args(self) -> list:
return list(self.model_dump().values())

def asm(self, key_width: Optional[int] = None) -> str:
Expand Down

0 comments on commit 225b047

Please sign in to comment.