Fix mypy warning

This commit is contained in:
James Westman 2021-11-24 20:06:55 -06:00
parent c4beb6841c
commit b0a8f3e2f5
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -42,7 +42,7 @@ def applies_to(*ast_types):
def completer(applies_in: T.List, matches: T.List=[], applies_in_subclass=None): def completer(applies_in: T.List, matches: T.List=[], applies_in_subclass=None):
def decorator(func): def decorator(func):
def inner(prev_tokens: T.List[Token], ast_node: ast.AstNode): def inner(prev_tokens: T.List[Token], ast_node):
# For completers that apply in ObjectContent nodes, we can further # For completers that apply in ObjectContent nodes, we can further
# check that the object is the right class # check that the object is the right class
if applies_in_subclass is not None: if applies_in_subclass is not None: