From 0da4d7c4d7543404d9a322f487280990d04980af 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: Tue, 2 Jul 2024 21:13:13 +0200 Subject: [PATCH] change TraceValue from Enum to StrEnum --- generate.py | 2 +- lsp_types.py | 2 +- lsp_types_sublime_text_33.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generate.py b/generate.py index b1069af..5f29b5e 100755 --- a/generate.py +++ b/generate.py @@ -23,7 +23,7 @@ 'SemanticTokenModifiers': 'StrEnum', 'SemanticTokenTypes': 'StrEnum', 'TokenFormat': 'StrEnum', - 'TraceValues': 'StrEnum', + 'TraceValue': 'StrEnum', 'UniquenessLevel': 'StrEnum', 'WatchKind': 'IntFlag', } # type: Dict[str, Literal['StrEnum', 'IntFlag']] diff --git a/lsp_types.py b/lsp_types.py index 3a74d25..7e184a2 100644 --- a/lsp_types.py +++ b/lsp_types.py @@ -401,7 +401,7 @@ class CodeActionKind(StrEnum): @since 3.18.0 """ -class TraceValue(Enum): +class TraceValue(StrEnum): Off = 'off' """ Turn tracing off. """ Messages = 'messages' diff --git a/lsp_types_sublime_text_33.py b/lsp_types_sublime_text_33.py index a512328..524e44a 100644 --- a/lsp_types_sublime_text_33.py +++ b/lsp_types_sublime_text_33.py @@ -401,7 +401,7 @@ class CodeActionKind(StrEnum): @since 3.18.0 """ -class TraceValue(Enum): +class TraceValue(StrEnum): Off = 'off' """ Turn tracing off. """ Messages = 'messages'