Skip to content

Commit b63dc36

Browse files
committed
Slight docstring improvement
1 parent 5bae8cc commit b63dc36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uber/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,10 +2378,10 @@ def __getattr__(self, name):
23782378

23792379
def __call__(self, create_savepoint=False, *args, **kwargs):
23802380
"""
2381-
Creates or returns the current session.
2381+
Creates a new session or returns the current session.
23822382
23832383
create_savepoint (bool): Flush the current session to the DB and create a savepoint.
2384-
This enables using session.rollback() to undo changes.
2384+
This lets you use session.rollback() to undo only changes made after the savepoint.
23852385
This is ignored if we're returning a new session.
23862386
"""
23872387
try:

0 commit comments

Comments
 (0)