- the common case is having an exception here (with no buffer setting),
which results in the exception handler always
- vim_eval has overhead, especially with Neovim, so the less calls the
better
This patch changes it to query the `b:` dict, using the (always
set/initialized) global setting as the default.
This commit removes the inner string quotation of the default value for the
added_sys_path setting. The inner quotes cause the value of the resulting
variable g:jedi#added_sys_path to be the sting "[]" instead of an empty list.
It should mostly still work (except for :Pyimport), but it won't pass all the tests anymore.
Since I'm dropping Python 2 in Jedi anyways, it makes sense to also remove it here.
* pythonx/jedi 3ad3dc08...3b7106ae (203):
> Fix a typo
> Prepare for 0.17.2
> Fix a Python 3.9 issue on travis
> Properly negate with Interpreter, fixes#1636
> Fix issues with generators, fixes#1624
> Introduce py__next__ to have more clear way to use __next__
> Merge pull request #1633 from mrclary/mrclary-fix-wingkinl-patch-python-environ
> Fix dict completions for inherited dicts, fixes#1631
> Refactor Interpeter completions a bit
> Make sure the interpreter completions work better in Jupyter Notebook, fixes#1628
> Fix an issue with interpreter completion, see also #1628
> Making sure to note that Python 2 will not be supported after 0.17.2
> Mention in Changelog that 3.9 is now supported
> Add download badge
> Some test skips
> Revert some of the Decoratee changes
> Some more signature adjustments
> Change Decoratee slightly
> Fix an issue with decoratee names
> Add Project.path, fixes#1622
> Fix the of a signature with a decorator
> Fix docstrings for method decorators, fixes#1621
> Make partial use the __doc__ of its function, fixes#1621
> Merge pull request #1614 from PeterJCLaw/fix-decorator-factory-passthrough
> Merge pull request #1623 from mallamanis/master
> Remove a print
> Typeshed third party libraries should not be loaded if they don't actually exist in the environment, fixes#1620
> Add the env_vars change to CHANGELOG
> Merge pull request #1619 from mrclary/subprocess-env-vars
> Make sure that Callables are properly represented
> Add Python 3.8 to the tox env list (#1618)
> Use Python 3 in the deployment script
> Prepare release 0.17.1
> Make sure the current version doesn't install a parso version that is new
> Small changelog improvement
> Mention Django Manager support for managers/querysets in changelog
> Add SyntaxError.get_message
> Mention 3.9 support better
> Fix decorator param completion
> Merge branch 'django'
> Merge branch 'master' of github.com:davidhalter/jedi
> Fix some issues with sub class matching, fixes#1560
> Better debugging output for is_sub_class_of
> Ignore runtime_checkable, because we don't really need it
> Fix a small extract_variable issue, fixes#1611
> Try to get get the tests for Python 3.9 passing, fixes#1608
> Make it possible to use inheritance on generics without always specifying type vars, see also discussion in #1593
> Update MANIFEST.in
> Make sure that scopes can only be exact values, see #1590
> Merge pull request #1590 from muffinmad/references-scope
> Fix a small issue with doctest completions, fixes#1585
> Exclude more Linux constants in test_import
> Merge pull request #1601 from yuan-xy/patch_3
> Refactoring about checking \r\n (#1603)
> fix typo (#1602)
> fix typo
> Merge pull request #1599 from isidentical/py38-plus-setuppy
> Merge pull request #1595 from PeterJCLaw/operator-not-in
> Import FileNotFoundError from jedi._compatibility
> Merge pull request #1586 from PeterJCLaw/django-more-fields
> Fix potential AttributeError in get_defintion_start_position/get_defintion_end_position, see #1584
> Fix an error of get_definition_end_pos, see #1584
> Refactor test_definition_start_end_position to use parametrize
> definition_end_position -> get_definition_end_position, same for start, see #1584
> Merge pull request #1584 from pappasam/get_definition_position
> Fix tests in Python 2
> Fix a small issue
> Magic methods fixes for reverse methods
> lists and tuples should not be added
> Use __truediv__ instead of __div__
> Fix an issue with Tuple generics
> A few class renames
> Better debugging
> Skip another non-important Python 2 test that fails on Windows
> Fix a namespace issue when getting references
> Fix an about dict completions
> Fix a None issue
> Implement magic method return values, fixes#1577
> Remove an unused cache method
> Undefined api types should not return a random value
> Add support for generic optional parameters (#1559)
> Fix inline case where a name was removed without the code being used, fixes#1582
> Make the diff nicer if there is no ending newline, fixes#1581
> Merge pull request #1579 from muffinmad/pseudotreenameclass
> Merge pull request #1572 from davidhalter/classvar
> Reduce noise in signatures of compiled params (#1564)
> Fix#1573 again; a tree_node can be None
> Fix argument clinic unpacking, remove dynamic bullshit
> This fixes two issues with the caching on Windows:
> Fix getattr completions on very weird cases, fixes#1573
> Fix tests
> Remove the common folder and move it to a common file
> Remove common.value
> Move infer_type_vars to base_value
> Merge pull request #1554 from PeterJCLaw/fix-nested-tuple-argument
> Add .venv to _IGNORE_FOLDERS
> Correct a test
> Speed up signature fetching for MixedName, see discussion in #1422
> Test that the actual signature of a function is used in Interpreter
> Very small refactoring
> Tell sith that goto_assignments is now goto
> Merge pull request #1561 from PeterJCLaw/newtype-pyclass
> Merge pull request #1553 from PeterJCLaw/generic-tuple-return
> Allow files for get_default_project, fixes#1552
> Don't display unnecessary help, fixes#1557
> Pin Django in a different way so tests can work everywhere
> Make sure that Django's values/values_list is tested (though not implemented
> Properly implement inheritance for Django models
> Make sure Django User inference works
> Pin the Django test dependency
> Mention django stubs support in README
> Include Django stubs license in Jedi package
> Some more django query tests
> Infer many to many fields
> Include Django stubs as a third party repo
> Make sure that infering the Django User model works
> Fix a recursion error issue
> Remove unused imports
> Fix typos in api.classes docstrings
> Remove a redundant check from Name.desc_with_module
> Actually fix#1556, forgot to add this in 94d374c9ceeb16ea1c6fe49b8e039d415c7dbe5a
> Start changelog for 0.17.1
> Fix a small issue with the help method, fixes#1556
> Django is not supported for Python 2
> Work with a NameWrapper, so Django goto works better
> Fix another django modelfield issue
> Some nitpicks
> Fix another issue with foreign keys
> Fix ForeignKey issues with invalid values
> Some other small refactorings
> Refactor a few things for django
> Remove old third party django tests
> Use debug instead of print for Django and fix indentation, see #1467
> Make Django test optional
> Merge branch 'master' of https://github.com/ANtlord/jedi
> Better developer tools
> Make the linter completely private
> Make sure that calling Jedi with a random argument in CLI results in errors
> Fix a small _get_annotated_class_object, fixes#1550
> Also don't complete keywords if kwargs only are allowed, see #1541
> Completion: Don't suggest variables when only kwargs are legal, fixes#1541
> fix#1548
> * Use an explicit environment for subprocess to ensure that existing environment variables are not inherited. This ensures more reliable results, see issue #1540. * Attempt to send SYSTEMROOT variable to Windows subprocess
> Sort test_project::test_search results to fix failures
> Inc difference limit in TestSetupReadline::test_import for py3.8
> Project._python_path -> Project.environment_path
> Set the release date in Changelog
> Some README improvements
> Extract now properly validates line/column and those two params are required
> Some minor CHANGELOG changes
> Upgrade parso version
> Fix a small issue
> Some more code quality fixes
> Some code cleanups
> Don't reuse a variable
> Remove unreachable code
> _convert_names kwargs are not needed
> Add pyproject.toml to the list of files to search for projects
> Use the interpreter environment if the executable is not available, fixes#1531
> Fix a potential AttributeError
> Add a comment to clarify the Type case
> Avoid AttributeErrors for generics when a module is passed
> Merge branch 'improve-type-annotation-inference-refactors' of https://github.com/PeterJCLaw/jedi
> Merge branch 'improve-type-annotation-inference' of https://github.com/PeterJCLaw/jedi
> If branch inference should not trigger for things we don't know, fixes#1530
> Fix string completion issue, fixes#1528
> Fix wrong types for iterate, fixes#1524
> Fix stub conversion for Decoratee, so docstrings work, see #117
> Remove unused environment param
> Fix a Python 2 test
> Merge branch 'refactor'
> Merge branch 'project'
> Included statement as a possible return type for BaseDefinition.type
> Fix partialmethod issues
> Make sure partialmethod tests are only executed for Python 3
> Merge branch 'add-partialmethod' of https://github.com/ffe4/jedi
> Merge branch 'expandtab' of https://github.com/Carreau/jedi
> Changed semantics of ClassVar attributes in classes, fixes#1502
> Avoid duplicate definitions for goto, fixes#1514
> Merge _remove_statements and infer_expr_stmt, fixes#1504
> Fix namedtuple docstring/signature issues, fixes#1506
> Fix a getattr_static issue, fixes#1517
> Disable some more tests for Python 2
> Make InterpreterEnvironment public
> is_typeddict should be part of ClassMixin
> Don't continue searching for values if an annotation is found
> TypedDict checking should be at a later point
> Simplify tests a bit
> Merge branch 'typeddict' of https://github.com/pappasam/jedi
> Update sith's module docstring to match the available operations
> Remove the word 'class' from annotation_string
> Add a couple of docstrings
> Tell sith that 'completions' became 'complete'
> Add venv to .gitignore
> Remove additional prefix which seems incorrect
> Update use of _source which no longer exists to _code
> Make sure to move up VSCode, because it's used a lot
> Revert "Make sure to mention that VSCode is using Jedi"
> Make sure to mention that VSCode is using Jedi
> Fix a test issue
> Actually use follow_builtin_imports and improve the goto docstring, fixes#1492
> Catch an error with illegal class instances, fixes#1491
> Make Ellipsis without list in Callable work, fixes#1475