mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
[commands] Fix documentation not being properly formatted
This commit is contained in:
parent
55c5be78cf
commit
66155faf00
@ -66,12 +66,13 @@ def _gen_property(name: str) -> property:
|
|||||||
return property(
|
return property(
|
||||||
attrgetter(attr),
|
attrgetter(attr),
|
||||||
lambda self, value: setattr(self, attr, value),
|
lambda self, value: setattr(self, attr, value),
|
||||||
doc="The parameter's {name}.",
|
doc=f"The parameter's {name}.",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Parameter(inspect.Parameter):
|
class Parameter(inspect.Parameter):
|
||||||
r"""A class that stores information on a :class:`Command`\'s parameter.
|
r"""A class that stores information on a :class:`Command`\'s parameter.
|
||||||
|
|
||||||
This is a subclass of :class:`inspect.Parameter`.
|
This is a subclass of :class:`inspect.Parameter`.
|
||||||
|
|
||||||
.. versionadded:: 2.0
|
.. versionadded:: 2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user