improve: mordernizing validation by migrating pydantic from 1.x to 2.x (#4592)
This commit is contained in:
parent
e8afc416dd
commit
f976740b57
87 changed files with 697 additions and 300 deletions
|
|
@ -12,7 +12,7 @@ from core.tools.tool.builtin_tool import BuiltinTool
|
|||
|
||||
|
||||
class QRCodeGeneratorTool(BuiltinTool):
|
||||
error_correction_levels = {
|
||||
error_correction_levels: dict[str, int] = {
|
||||
'L': ERROR_CORRECT_L, # <=7%
|
||||
'M': ERROR_CORRECT_M, # <=15%
|
||||
'Q': ERROR_CORRECT_Q, # <=25%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue