Skip to content

Commit f472e4f

Browse files
authored
Merge branch 'master' into slash-group-stuff
2 parents d24250d + 17987c7 commit f472e4f

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

discord/ext/commands/flags.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333

3434
from discord.utils import MISSING, MissingField, maybe_coroutine, resolve_annotation
3535

36+
if sys.version_info >= (3, 11):
37+
_MISSING = MissingField
38+
else:
39+
_MISSING = MISSING
40+
3641
from .converter import run_converters
3742
from .errors import (
3843
BadFlagArgument,
@@ -81,13 +86,13 @@ class Flag:
8186
Whether multiple given values overrides the previous value.
8287
"""
8388

84-
name: str = MISSING
89+
name: str = _MISSING
8590
aliases: list[str] = field(default_factory=list)
86-
attribute: str = MISSING
87-
annotation: Any = MISSING
88-
default: Any = MISSING
89-
max_args: int = MISSING
90-
override: bool = MISSING
91+
attribute: str = _MISSING
92+
annotation: Any = _MISSING
93+
default: Any = _MISSING
94+
max_args: int = _MISSING
95+
override: bool = _MISSING
9196
cast_to_dict: bool = False
9297

9398
@property

0 commit comments

Comments
 (0)