Rapptz
00a445310b
[commands] Allow for backtracking parsing with typing.Optional
...
Original code by zephyrkul.
This new parsing mode allows for backtracking in case of failure
when a typing.Union[..., NoneType] or a typing.Optional[...] is used.
This means that if a type would fail to parse, the view is undo'd to
a previous state, passing the default parameter to the callback, and
then continuing on the next parameter as if nothing had happened.
2018-09-23 06:12:26 -04:00
..
2018-01-26 12:46:19 -05:00
2018-09-23 06:12:26 -04:00
2018-06-10 18:16:40 -04:00
2018-08-22 21:43:53 -04:00
2018-09-14 22:55:29 -04:00
2018-08-22 21:43:55 -04:00
2018-09-14 22:55:27 -04:00
2017-08-08 17:31:09 -04:00
2018-09-14 22:55:27 -04:00
2018-09-15 09:54:00 -04:00
2018-09-15 09:54:00 -04:00
2018-08-22 21:06:09 -04:00
2018-06-10 18:30:32 -04:00
2018-08-22 21:43:53 -04:00
2018-09-15 09:54:00 -04:00
2018-08-22 22:01:19 -04:00
2018-06-10 18:10:00 -04:00
2018-01-06 17:23:59 -05:00
2018-08-24 21:57:26 -04:00
2018-09-20 23:45:15 -04:00
2018-09-14 22:55:29 -04:00
2018-08-22 21:43:53 -04:00
2018-08-22 21:43:53 -04:00
2018-09-14 22:55:27 -04:00
2018-09-14 22:55:27 -04:00
2017-01-20 23:19:19 -05:00
2018-08-22 21:43:53 -04:00
2018-02-06 11:19:42 -05:00
2018-09-14 22:55:27 -04:00
2018-09-15 09:54:00 -04:00
2018-08-22 21:43:53 -04:00
2018-08-28 23:50:52 -04:00
2018-08-22 21:43:50 -04:00
2018-08-22 21:43:53 -04:00
2018-09-14 22:55:27 -04:00
2018-09-15 18:28:57 -04:00
2018-09-16 22:46:05 +08:00
2018-09-14 22:55:27 -04:00
2018-09-15 09:54:00 -04:00
2018-09-15 09:54:00 -04:00