Skip to content

Commit 2340d59

Browse files
committed
Merge remote-tracking branch 'origin/sqlalchemy' into dev-2023
2 parents ba72a9f + 91bf3d9 commit 2340d59

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nbgrader/api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
DateTime, Interval, Float, Enum, UniqueConstraint,
1010
Boolean, inspect, text)
1111
from sqlalchemy.orm import (sessionmaker, scoped_session, relationship,
12-
column_property, DeclarativeBase)
12+
column_property, declarative_base)
1313
from sqlalchemy.orm.exc import NoResultFound, FlushError
1414
from sqlalchemy.ext.associationproxy import association_proxy
1515
from sqlalchemy.exc import IntegrityError, StatementError
@@ -25,8 +25,7 @@
2525
from .auth import Authenticator
2626

2727

28-
class Base(DeclarativeBase):
29-
pass
28+
Base = declarative_base()
3029

3130

3231
def new_uuid() -> str:

0 commit comments

Comments
 (0)