Fix type-errors in commands extension

This commit is contained in:
Josh authored and GitHub committed 2022-02-23 08:04:49 -05:00
1 parent a315786869
commit 39c5a4fdc3
5 files changed
+103 -82

No files matched your search

+1 -2
View File
@@ -21,7 +21,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
from .errors import UnexpectedQuoteError, InvalidEndOfQuotedStringError, ExpectedClosingQuoteError
# map from opening quotes to closing quotes
@@ -177,7 +176,7 @@ class StringView:
next_char = self.get()
valid_eof = not next_char or next_char.isspace()
if not valid_eof:
raise InvalidEndOfQuotedStringError(next_char)
raise InvalidEndOfQuotedStringError(next_char) # type: ignore - this will always be a string
# we're quoted so it's okay
return ''.join(result)