🐛 fix di default param eq override (#971)

This commit is contained in:
Ju4tCode 2022-05-14 16:54:41 +08:00 committed by GitHub
parent 42a49a20aa
commit 5e970a291f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: