Skip to content

Commit

Permalink
fix kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas committed Sep 1, 2020
1 parent 0c3bf03 commit a8f618e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gino/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,10 @@ def __init__(
:class:`~sqlalchemy.schema.MetaData`.
"""
super().__init__(bind=bind, naming_convention=NAMING_CONVENTION, **kwargs)
preset_kwargs = dict(naming_convention=NAMING_CONVENTION, bind=bind)
preset_kwargs.update(kwargs)
super().__init__(**preset_kwargs)

if model_classes is None:
model_classes = self.model_base_classes
self._model = declarative_base(self, model_classes)
Expand Down

0 comments on commit a8f618e

Please sign in to comment.