From 89abe45346a3ed8187a6cdd94a391029a49acaeb Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Sat, 15 Jun 2024 15:51:29 +1000 Subject: [PATCH] Add missing self parameter to Formatter method --- plugin/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/formatter.py b/plugin/formatter.py index a5886cf..e1e8c7c 100644 --- a/plugin/formatter.py +++ b/plugin/formatter.py @@ -61,7 +61,7 @@ def format(self, view: View, edit: Edit, region: Region) -> None: view.replace(edit, region, completed_process.stdout) view.set_viewport_position(position, animate=False) - def _extract_variables(view: View) -> dict[str, str]: + def _extract_variables(self, view: View) -> dict[str, str]: settings = view.settings() tab_size = settings.get("tab_size") or 0 indent = " " * tab_size if settings.get("translate_tabs_to_spaces") else "\t"