From 8c58a9083a8ebe3a8f827f0e67dafbe2a10c71f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 26 Apr 2023 18:31:13 +0800 Subject: [PATCH] Added type hint subscription for the cls parameter of the new_id function. --- src/accounting/utils/random_id.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounting/utils/random_id.py b/src/accounting/utils/random_id.py index 8b18cf6..31421fb 100644 --- a/src/accounting/utils/random_id.py +++ b/src/accounting/utils/random_id.py @@ -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.