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