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

This commit is contained in:
imacat committed 2026-04-05 23:49:16 +08:00
1 parent cca3f89bf1
commit 356950e2c7
9 files changed
+19 -26

No files matched your search

+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