From fe0ae53caa87702a9978c3a38a446386517bb4f8 Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Sun, 10 Sep 2023 16:56:13 +0100 Subject: [PATCH] Remove default argument in hookimpl overshadowing the runtime value, see: https://github.com/pytest-dev/pluggy/issues/442#issuecomment-1712843504 --- pylsp/plugins/references.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylsp/plugins/references.py b/pylsp/plugins/references.py index cfdf86b5..fadf1de8 100644 --- a/pylsp/plugins/references.py +++ b/pylsp/plugins/references.py @@ -8,7 +8,7 @@ @hookimpl -def pylsp_references(document, position, exclude_declaration=False): +def pylsp_references(document, position, exclude_declaration): code_position = _utils.position_to_jedi_linecolumn(document, position) usages = document.jedi_script().get_references(**code_position)