From 0cf5c2088658a5b837a9775bd97af032a37cd116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=B4=D1=80=D0=B0=D0=B3=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B8=D1=9B?= Date: Thu, 4 Jul 2024 12:22:16 +0200 Subject: [PATCH] remove casting --- plugin/core/signature_help.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/core/signature_help.py b/plugin/core/signature_help.py index 917db508f..aa94b6084 100644 --- a/plugin/core/signature_help.py +++ b/plugin/core/signature_help.py @@ -8,7 +8,6 @@ from .views import FORMAT_STRING from .views import MarkdownLangMap from .views import minihtml -from typing import cast import functools import html import re @@ -170,7 +169,7 @@ def _parameter_documentation(self, view: sublime.View, signature: SignatureInfor if not parameters: return None try: - active_parameter = cast(Uint, signature.get("activeParameter")) + active_parameter = signature.get("activeParameter") parameter = parameters[active_parameter or self._active_parameter_index] except IndexError: return None