You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some more information:
the dot in the example causes complete() to call self.attr_matches(text)
which in turn performes the following call
re.match(r"(\w+(\.\w+))\.(\w)", text)
and return None if there is no match.
the complete method unconditionally accesses the return value like a
list via
matches[state]
which raises the TypeError.
The obvious solution was to return an empty list instead of None which
is also the behaviour in all other cases where no completion is found.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: