mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🎨 格式化代码
This commit is contained in:
parent
bb3a7d9bc0
commit
17dd2bb22e
@ -74,7 +74,7 @@ def parse_as(type_: type[T], obj: Any) -> T:
|
||||
|
||||
return parse_obj_as(type_, obj)
|
||||
else:
|
||||
from pydantic import TypeAdapter
|
||||
from pydantic import TypeAdapter # type: ignore
|
||||
|
||||
return TypeAdapter(type_).validate_python(obj)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user