Skip to content

Commit 206fcc2

Browse files
committed
fix Option default value
1 parent dd361d7 commit 206fcc2

3 files changed

Lines changed: 113 additions & 95 deletions

File tree

nonebot_plugin_memes_api/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def option(self) -> Option:
165165
name="|".join(self.names),
166166
args=args,
167167
dest=self.dest,
168-
default=self.default,
168+
default=self.default or Empty,
169169
action=self.action,
170170
help_text=self.help_text,
171171
compact=self.compact,

0 commit comments

Comments
 (0)