Replace typing.Type with built-in type[] for Python 3.12.

This commit is contained in:
2026-04-05 21:49:17 +08:00
parent cca3f89bf1
commit 356950e2c7
9 changed files with 19 additions and 26 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ The following is an example configuration for *Mia! Accounting*.
return redirect("/login")
@property
def cls(self) -> t.Type[User]:
def cls(self) -> type[User]:
return User
@property