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 8072db8 commit 6a666e1Copy full SHA for 6a666e1
src/fastcs/util.py
@@ -57,8 +57,10 @@ def validate_hinted_attributes(controller: BaseController):
57
f"Controller `{controller.__class__.__name__}` failed to introspect "
58
f"hinted attribute `{name}` during initialisation"
59
)
60
- if attr_class not in [type(attr), Attribute]:
+ if attr_class is not type(attr):
61
# skip validation if access mode not specified
62
+ if attr_class is Attribute and isinstance(attr, Attribute):
63
+ continue
64
raise RuntimeError(
65
f"Controller '{controller.__class__.__name__}' introspection of hinted "
66
f"attribute '{name}' does not match defined access mode. "
0 commit comments