Added type hint subscription for the cls parameter of the new_id function.

This commit is contained in:
依瑪貓 2023-04-26 18:31:13 +08:00
parent f45663754c
commit 8c58a9083a

View File

@ -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.