mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 09:38:21 +08:00
🐛 fix param missing name
This commit is contained in:
parent
89ae275793
commit
6b2d8d2674
@ -188,7 +188,7 @@ class BotParam(Param):
|
|||||||
_BotChecker(
|
_BotChecker(
|
||||||
Required,
|
Required,
|
||||||
field=ModelField(
|
field=ModelField(
|
||||||
name="",
|
name=name,
|
||||||
type_=param.annotation,
|
type_=param.annotation,
|
||||||
class_validators=None,
|
class_validators=None,
|
||||||
model_config=CustomConfig,
|
model_config=CustomConfig,
|
||||||
@ -229,7 +229,7 @@ class EventParam(Param):
|
|||||||
_EventChecker(
|
_EventChecker(
|
||||||
Required,
|
Required,
|
||||||
field=ModelField(
|
field=ModelField(
|
||||||
name="",
|
name=name,
|
||||||
type_=param.annotation,
|
type_=param.annotation,
|
||||||
class_validators=None,
|
class_validators=None,
|
||||||
model_config=CustomConfig,
|
model_config=CustomConfig,
|
||||||
|
Loading…
Reference in New Issue
Block a user