Applied the "type" statement to type aliases for Python 3.12.
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
# The Mia! Accounting Project.
 | 
					# The Mia! Accounting Project.
 | 
				
			||||||
# Author: imacat@mail.imacat.idv.tw (imacat), 2023/1/30
 | 
					# Author: imacat@mail.imacat.idv.tw (imacat), 2023/1/30
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#  Copyright (c) 2023 imacat.
 | 
					#  Copyright (c) 2023-2024 imacat.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#  Licensed under the Apache License, Version 2.0 (the "License");
 | 
					#  Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
#  you may not use this file except in compliance with the License.
 | 
					#  you may not use this file except in compliance with the License.
 | 
				
			||||||
@@ -27,7 +27,7 @@ from accounting import db
 | 
				
			|||||||
from accounting.models import BaseAccount, Account, AccountL10n
 | 
					from accounting.models import BaseAccount, Account, AccountL10n
 | 
				
			||||||
from accounting.utils.user import get_user_pk
 | 
					from accounting.utils.user import get_user_pk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AccountData = tuple[int, str, int, str, str, str, bool]
 | 
					type AccountData = tuple[int, str, int, str, str, str, bool]
 | 
				
			||||||
"""The format of the account data, as a list of (ID, base account code, number,
 | 
					"""The format of the account data, as a list of (ID, base account code, number,
 | 
				
			||||||
English, Traditional Chinese, Simplified Chinese, is-need-offset) tuples."""
 | 
					English, Traditional Chinese, Simplified Chinese, is-need-offset) tuples."""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
# The Mia! Accounting Project.
 | 
					# The Mia! Accounting Project.
 | 
				
			||||||
# Author: imacat@mail.imacat.idv.tw (imacat), 2023/2/1
 | 
					# Author: imacat@mail.imacat.idv.tw (imacat), 2023/2/1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#  Copyright (c) 2023 imacat.
 | 
					#  Copyright (c) 2023-2024 imacat.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#  Licensed under the Apache License, Version 2.0 (the "License");
 | 
					#  Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
#  you may not use this file except in compliance with the License.
 | 
					#  you may not use this file except in compliance with the License.
 | 
				
			||||||
@@ -113,7 +113,7 @@ class UserUtilityInterface(Generic[T], ABC):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
__user_utils: UserUtilityInterface
 | 
					__user_utils: UserUtilityInterface
 | 
				
			||||||
"""The user utilities."""
 | 
					"""The user utilities."""
 | 
				
			||||||
user_cls: Type[Model] = Model
 | 
					type user_cls = Model
 | 
				
			||||||
"""The user class."""
 | 
					"""The user class."""
 | 
				
			||||||
user_pk_column: sa.Column = sa.Column(sa.Integer)
 | 
					user_pk_column: sa.Column = sa.Column(sa.Integer)
 | 
				
			||||||
"""The primary key column of the user class."""
 | 
					"""The primary key column of the user class."""
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user