- marked as bug
fail gracefully for this particular error
Issue #2352
resolved
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import *
Base = declarative_base()
class MyClass(Base):
__table__ = Table("x",
Base.metadata,
Column('id', Integer, primary_key=True),
Column('foo', String)
)
class MySubClass(MyClass):
def foo(self):
pass
stack trace, for weird python reasons ? is:
self._configure_properties()
File "/Users/classic/dev/sqlalchemy/lib/sqlalchemy/orm/mapper.py", line 824, in _configure_properties
not self._should_exclude(key, key, local=False, column=None):
File "/Users/classic/dev/sqlalchemy/lib/sqlalchemy/orm/mapper.py", line 1481, in _should_exclude
getattr(self.class_, assigned_name)):
File "/Users/classic/dev/sqlalchemy/lib/sqlalchemy/orm/mapper.py", line 1458, in _is_userland_descriptor
isinstance(obj.__get__(None, obj),
TypeError: Error when calling the metaclass bases
issubclass() arg 1 must be a class
Comments (3)
-
reporter -
reporter - changed status to resolved
-
reporter - removed milestone
Removing milestone: 0.7.6 (automated comment)
- Log in to comment