Skip to content

Commit

Permalink
Merge branch 'master' into slash-group-stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Jun 12, 2023
2 parents d24250d + 17987c7 commit f472e4f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions discord/ext/commands/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@

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

if sys.version_info >= (3, 11):
_MISSING = MissingField
else:
_MISSING = MISSING

from .converter import run_converters
from .errors import (
BadFlagArgument,
Expand Down Expand Up @@ -81,13 +86,13 @@ class Flag:
Whether multiple given values overrides the previous value.
"""

name: str = MISSING
name: str = _MISSING
aliases: list[str] = field(default_factory=list)
attribute: str = MISSING
annotation: Any = MISSING
default: Any = MISSING
max_args: int = MISSING
override: bool = MISSING
attribute: str = _MISSING
annotation: Any = _MISSING
default: Any = _MISSING
max_args: int = _MISSING
override: bool = _MISSING
cast_to_dict: bool = False

@property
Expand Down

0 comments on commit f472e4f

Please sign in to comment.