[Chore/Refactor] Improve type annotations in models module (#25281)
Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
parent
e1f871fefe
commit
9b8a03b53b
23 changed files with 332 additions and 251 deletions
|
|
@ -154,7 +154,7 @@ class TestEnumText:
|
|||
TestCase(
|
||||
name="session insert with invalid type",
|
||||
action=lambda s: _session_insert_with_value(s, 1),
|
||||
exc_type=TypeError,
|
||||
exc_type=ValueError,
|
||||
),
|
||||
TestCase(
|
||||
name="insert with invalid value",
|
||||
|
|
@ -164,7 +164,7 @@ class TestEnumText:
|
|||
TestCase(
|
||||
name="insert with invalid type",
|
||||
action=lambda s: _insert_with_user(s, 1),
|
||||
exc_type=TypeError,
|
||||
exc_type=ValueError,
|
||||
),
|
||||
]
|
||||
for idx, c in enumerate(cases, 1):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue