Skip to content

Commit 40afab3

Browse files
committed
bump jedi compatibility: compare to Path-like object
1 parent a91a257 commit 40afab3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyls/plugins/symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def pyls_document_symbols(config, document):
3737
not sym_full_name.startswith('__main__')):
3838
continue
3939

40-
if _include_def(d) and document.path == d.module_path:
40+
if _include_def(d) and os.path.samefile(document.path, d.module_path):
4141
tuple_range = _tuple_range(d)
4242
if tuple_range in exclude:
4343
continue

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'configparser; python_version<"3.0"',
1111
'future>=0.14.0; python_version<"3"',
1212
'backports.functools_lru_cache; python_version<"3.2"',
13-
'jedi>=0.17.2,<0.18.0',
13+
'jedi>=0.17.2,<0.19.0',
1414
'python-jsonrpc-server>=0.4.0',
1515
'pluggy',
1616
'ujson<=2.0.3 ; platform_system!="Windows" and python_version<"3.0"',

0 commit comments

Comments
 (0)