File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 3333
3434from 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+
3641from .converter import run_converters
3742from .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
You can’t perform that action at this time.
0 commit comments