From 7a07644de3dad9defe60d44cca7211b7b7f84134 Mon Sep 17 00:00:00 2001 From: Sebastian Law <44045823+SebbyLaw@users.noreply.github.com> Date: Sun, 28 Jun 2020 00:54:34 -0700 Subject: [commands] Raise TypeError when Optional is used with Greedy converter --- docs/ext/commands/commands.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/ext/commands/commands.rst b/docs/ext/commands/commands.rst index fbf87fc2..523de3e3 100644 --- a/docs/ext/commands/commands.rst +++ b/docs/ext/commands/commands.rst @@ -552,8 +552,8 @@ This command can be invoked any of the following ways: unintended parsing ambiguities in your code. One technique would be to clamp down the expected syntaxes allowed through custom converters or reordering the parameters to minimise clashes. - To help aid with some parsing ambiguities, :class:`str`, ``None`` and :data:`~ext.commands.Greedy` are - forbidden as parameters for the :data:`~ext.commands.Greedy` converter. + To help aid with some parsing ambiguities, :class:`str`, ``None``, :data:`typing.Optional` and + :data:`~ext.commands.Greedy` are forbidden as parameters for the :data:`~ext.commands.Greedy` converter. .. _ext_commands_error_handler: -- cgit v1.2.3