From 68346f53cfde6b1a33eccae012ec2efdc56b3791 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:17:11 +0200 Subject: [PATCH] remove Enum import --- 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 5f29b5e..27222a5 100755 --- a/generate.py +++ b/generate.py @@ -41,7 +41,7 @@ def generate(preferred_structure_kind: StructureKind, output: str) -> None: f"# LSP v{specification_version}\n", "from typing_extensions import NotRequired", "from typing import Dict, List, Literal, TypedDict, Union", - "from enum import Enum, IntEnum, IntFlag, StrEnum\n\n", + "from enum import IntEnum, IntFlag, StrEnum\n\n", "URI = str", "DocumentUri = str", "Uint = int", diff --git a/lsp_types.py b/lsp_types.py index 7e184a2..1b3efb9 100644 --- a/lsp_types.py +++ b/lsp_types.py @@ -3,7 +3,7 @@ from typing_extensions import NotRequired from typing import Dict, List, Literal, TypedDict, Union -from enum import Enum, IntEnum, IntFlag, StrEnum +from enum import IntEnum, IntFlag, StrEnum URI = str diff --git a/lsp_types_sublime_text_33.py b/lsp_types_sublime_text_33.py index 524e44a..1b1ef80 100644 --- a/lsp_types_sublime_text_33.py +++ b/lsp_types_sublime_text_33.py @@ -3,7 +3,7 @@ from typing_extensions import NotRequired from typing import Dict, List, Literal, TypedDict, Union -from enum import Enum, IntEnum, IntFlag, StrEnum +from enum import IntEnum, IntFlag, StrEnum URI = str