mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 15:06:07 +00:00
[commands] Fix _fallback attr not being set on replace for Parameter
This commit is contained in:
parent
7db391189d
commit
d95605839f
@ -135,7 +135,7 @@ class Parameter(inspect.Parameter):
|
||||
if displayed_name is MISSING:
|
||||
displayed_name = self._displayed_name
|
||||
|
||||
return self.__class__(
|
||||
ret = self.__class__(
|
||||
name=name,
|
||||
kind=kind,
|
||||
default=default,
|
||||
@ -144,6 +144,8 @@ class Parameter(inspect.Parameter):
|
||||
displayed_default=displayed_default,
|
||||
displayed_name=displayed_name,
|
||||
)
|
||||
ret._fallback = self._fallback
|
||||
return ret
|
||||
|
||||
if not TYPE_CHECKING: # this is to prevent anything breaking if inspect internals change
|
||||
name = _gen_property('name')
|
||||
|
Loading…
x
Reference in New Issue
Block a user