Added type hint subscription for the cls parameter of the new_id function.
This commit is contained in:
1 parent
f45663754c
commit
8c58a9083a
1 file changed
+1
-1
@@ -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