Prerequisites
Steps to Reproduce
- Write a bracket, e. g.:
variable = ()
variable = []
variable = {}
Expected behavior:
No error to be displayed.
Actual behavior:
Error is throw every time by autocomplete-python

No issues with function definitions and calls, the issue seems to be triggered when single bracket is being written (like when using list comprehensions or declaring variables).
Error text:
autocomplete-python traceback output:
Traceback (most recent call last):
File "/home/driuba/.atom/packages/autocomplete-python/lib/completion.py", line 381, in watch
self._process_request(request)
File "/home/driuba/.atom/packages/autocomplete-python/lib/completion.py", line 349, in _process_request
return self._write_response(self._serialize_tooltip(
File "/home/driuba/.atom/packages/autocomplete-python/lib/completion.py", line 275, in _serialize_tooltip
'line': definition.line - 1,
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
OS info:

Atom info:

autocomplete-python info:

P. S.
Other functionality works as expected without issues. The error message does not seem to be critical, however it is very annoying as it spams a lot.
Prerequisites
dev toolsusing command palette and you should see someautocomplete-pythonrecords in console tab. This will include parts of your code – make sure to remove everything you don't want to share.Steps to Reproduce
Expected behavior:
No error to be displayed.
Actual behavior:

Error is throw every time by
autocomplete-pythonNo issues with function definitions and calls, the issue seems to be triggered when single bracket is being written (like when using list comprehensions or declaring variables).
Error text:
OS info:

Atom info:

autocomplete-python info:

P. S.
Other functionality works as expected without issues. The error message does not seem to be critical, however it is very annoying as it spams a lot.