-
Notifications
You must be signed in to change notification settings - Fork 300
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 #6012 from jenshnielsen/typed_kwargs
Use typeddicts for better kwargs typing in Instrument classes
- Loading branch information
Showing
69 changed files
with
1,066 additions
and
376 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
The keyword arguments expected to be passed to ``InstrumentBase`` and ``VisaInstrument`` subclasses are now | ||
documented as TypedDics classes that can be used to type `**kwargs` in the subclass constructors. | ||
See `Creating QCoDeS instrument drivers` for usage examples. | ||
|
||
This also means that the these arguments **must** be passed as keyword arguments, and not as positional arguments. | ||
This specifically includeds passing ``label`` and ``metadata`` to direct subclasses of ``Instrument`` as well as | ||
``terminator`` to subclasses of ``VisaInstrument``. | ||
|
||
All drivers shipping with qcodes for Vendors from A-K have been updated. | ||
The remaining drivers will be updated in a subsequent pull request. |
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
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
Oops, something went wrong.