Added type hint subscription for the cls parameter of the new_id function.
This commit is contained in:
parent
f45663754c
commit
8c58a9083a
@ -25,7 +25,7 @@ from typing import Type
|
||||
from accounting import db
|
||||
|
||||
|
||||
def new_id(cls: Type):
|
||||
def new_id(cls: Type[db.Model]):
|
||||
"""Returns a new random ID for the data model.
|
||||
|
||||
:param cls: The data model.
|
||||
|
Loading…
Reference in New Issue
Block a user