-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Labels
Description
Hello,
Is there something wrong in the following code ?
from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
name = Column(String)
class Address(Base):
__tablename__ = 'addresses'
id = Column(Integer, primary_key=True)
name = Column(String)
User(name="x")
d = {"name": "x"}
User(**d) # causes error: Unexpected column "None" for model "User"
Is this the expected behaviour ?