Skip to content

Commit

Permalink
refactor: ♻️ Set to None all un-defined attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjansc committed Apr 8, 2022
1 parent f22accc commit 77ba88b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/qililab/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class QililabBackend(NumpyBackend):

def __init__(self):
super().__init__()
self.platform: Platform
self.platform: Platform | None = None
self.name = "qililab"
self.is_hardware = True

Expand Down
2 changes: 1 addition & 1 deletion src/qililab/instruments/qblox/qblox_pulsar.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class QbloxPulsar(Instrument):

def __init__(self, name: str):
super().__init__(name=name)
self.device: Pulsar
self.device: Pulsar | None = None
self.settings = self.load_settings()

def load_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion src/qililab/instruments/rohde_schwarz/sgs100a.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SGS100A(SignalGenerator):

def __init__(self, name: str):
super().__init__(name=name)
self.device: RohdeSchwarz_SGS100A
self.device: RohdeSchwarz_SGS100A | None = None
self.settings = self.load_settings()

def load_settings(self):
Expand Down

0 comments on commit 77ba88b

Please # to comment.