[commands] Raise TypeError when Optional is used with Greedy converter

This commit is contained in:
Sebastian Law authored and GitHub committed 2020-06-28 03:54:34 -04:00
1 parent 6b5be39cd2
commit 7a07644de3
2 files changed
+6 -2

No files matched your search

+2 -2
View File
@@ -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: