jack1142
5ffa3e85de
Update comments after `# type: ignore` to be compatible with PEP 484
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
Josh
39c5a4fdc3
Fix type-errors in commands extension
3 years ago
Rapptz
88b520b5ab
Reformat code using black
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
3 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Rapptz
8a153bfaad
[commands] Refactor quoted_word free function to a StringView method.
Technically a breaking change, however this interface was not
documented or guaranteed to exist.
6 years ago
Rapptz
560783c3d2
[commands] Separate view parsing errors from BadArgument.
This causes them to be raised from a new exception named
ArgumentParsingError with 3 children for ease with i18n. This is
technically a breaking change since it no longer derives from
BadArgument, though catching UserInputError will prevent this change
from affecting the user.
6 years ago
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
6 years ago
Hornwitser
ed6451b9da
[commands] Remove duplicated quote entries
Remove two duplicated entries from the quote mapping in commands.view.
These were introduced at the creation of this mapping in ea061ef
.
7 years ago
Hornwitser
c8b49d37be
[lint] Fix incorrect and inconsistent whitespace
Adjust whitespace to be consistent with the rest of the library.
7 years ago
Rapptz
f176309179
[commands] Don't handle single quotes.
7 years ago
Rapptz
d8a85f4898
[commands] Minor optimisations to unicode quote handling.
7 years ago
b-hodges
ea061ef9b2
[commands] Added handling for unicode quotes
7 years ago
Rapptz
ff9f5749e1
Update copyright year to 2017.
8 years ago
Rapptz
59ca5ec386
Initial implementation of commands extension module.
9 years ago