mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 00:55:07 +08:00
🐛 fix di default param eq override (#971)
This commit is contained in:
parent
42a49a20aa
commit
5e970a291f
@ -194,7 +194,7 @@ class Dependent(Generic[R]):
|
||||
field_info = field.field_info
|
||||
assert isinstance(field_info, Param), "Params must be subclasses of Param"
|
||||
value = await field_info._solve(**params)
|
||||
if value == Undefined:
|
||||
if value is Undefined:
|
||||
value = field.get_default()
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user