Mutable.associate_with does not return anything (just fix the docs)
Issue #2118
resolved
sqlalchemy.ext.mutable:Mutable.associate_with(...) is supposed to return an sqltype according to:
But it doesn't return anything:
In its current state, the example yields this error:
...
File "/Users/shazow/projects/myproject/myproject/model/objects.py", line 546, in Annotation
data = Column(mytypes.MutationDict.associate_with(mytypes.JSONEncodedDict))
File "/Users/shazow/env/myproject/lib/python2.7/site-packages/sqlalchemy/schema.py", line 777, in __init__
raise exc.ArgumentError("'type' is required on Column objects "
sqlalchemy.exc.ArgumentError: 'type' is required on Column objects which have no foreign keys.
- shazow
Comments (4)
-
Account Deleted -
repo owner - changed component to documentation
- changed title to Mutable.associate_with does not return anything (just fix the docs)
I think its supposed to be using as_mutable. associate_with is like a global thing.
-
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.7.0 (automated comment)
- Log in to comment
Or perhaps the example needs to be updated to use
Mutable.as_mutable(...)
instead?