We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bd3823 commit 0ae9a94Copy full SHA for 0ae9a94
src/fastcs/util.py
@@ -64,7 +64,7 @@ def validate_hinted_attributes(controller: BaseController):
64
f"attribute '{name}' does not match defined access mode. "
65
f"Expected '{attr_class.__name__}', got '{type(attr).__name__}'."
66
)
67
- if attr_dtype not in [attr.datatype.dtype, None]:
+ if attr_dtype is not None and attr_dtype != attr.datatype.dtype:
68
raise RuntimeError(
69
f"Controller '{controller.__class__.__name__}' introspection of hinted "
70
f"attribute '{name}' does not match defined datatype. "
0 commit comments