Update type annotation, savepoint_id is an int.

This commit is contained in:
voussoir 2022-03-22 22:16:42 -07:00
parent a76982e581
commit 9c9123e2d2
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -384,7 +384,7 @@ class Database(metaclass=abc.ABCMeta):
self.savepoints.clear()
self.on_commit_queue.clear()
def savepoint(self, message=None) -> str:
def savepoint(self, message=None) -> int:
savepoint_id = RNG.getrandbits(32)
if message:
log.log(5, 'Savepoint %s for %s.', savepoint_id, message)