Added type hint subscription for the cls parameter of the new_id function.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user