- changed component to documentation
- changed milestone to 0.5.4
- changed status to resolved
class_mapper doc and code different for 0.5.2
Issue #1316
resolved
The API doc for class_mapper say: sqlalchemy.orm.class_mapper(class_, compile=True)
Given a class (or an object), return the primary Mapper associated with the key.
Raises UnmappedClassError if no mapping is configured.
but the code will not take a object.
Older version of class mapper had
if not isinstance(class_, type):
class_ = type(class_)
to allow both class or object. Since this code has been changed should the doc be changed to remvoe the (or object) or should the check if statement be put back in the code.
Comments (2)
-
-
repo owner - removed milestone
Removing milestone: 0.5.4 (automated comment)
- Log in to comment
Corrected in 8e8546c919e7f9dc41f8619d02e79e10d2ab6333