Skip to content

Commit

Permalink
Update qcodes/validators/validators.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Astafev <[email protected]>
  • Loading branch information
jenshnielsen and astafan8 committed Jan 3, 2023
1 parent b79463c commit b78110f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qcodes/validators/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def validate(
Raises:
TypeError: If not a complex number.
"""
# for some reason pyright does not thing numpy complex
# for some reason pyright does not think numpy complex
# types as valid types here
if not isinstance(value, self.validtypes): # pyright: ignore
raise TypeError(f"{repr(value)} is not complex; {context}")
Expand Down

0 comments on commit b78110f

Please sign in to comment.