Skip to content

Commit

Permalink
Make it clear to mypy that this driver only works on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Oct 5, 2022
1 parent e0335a8 commit 9d51639
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qcodes_contrib_drivers/drivers/SignalCore/SignalCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
MAXDESCRIPTORSIZE = 9
COMMINTERFACE = ctypes.c_uint8(1)

if sys.platform != "win32":
raise EnvironmentError(f"SC5521A is supported only on Windows platform")


class ManDate(ctypes.Structure):
_fields_ = [('year', ctypes.c_uint8),
('month', ctypes.c_uint8),
Expand Down

0 comments on commit 9d51639

Please sign in to comment.