Skip to content

Commit 0ae9a94

Browse files
jsouterGDYendell
authored andcommitted
pyright
1 parent 9bd3823 commit 0ae9a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fastcs/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def validate_hinted_attributes(controller: BaseController):
6464
f"attribute '{name}' does not match defined access mode. "
6565
f"Expected '{attr_class.__name__}', got '{type(attr).__name__}'."
6666
)
67-
if attr_dtype not in [attr.datatype.dtype, None]:
67+
if attr_dtype is not None and attr_dtype != attr.datatype.dtype:
6868
raise RuntimeError(
6969
f"Controller '{controller.__class__.__name__}' introspection of hinted "
7070
f"attribute '{name}' does not match defined datatype. "

0 commit comments

Comments
 (0)