@@ -1249,7 +1249,7 @@ class FoldingRange(TypedDict):
12491249 """
12501250 endCharacter : NotRequired [Uint ]
12511251 """The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line."""
1252- kind : NotRequired [' FoldingRangeKind' ]
1252+ kind : NotRequired [Union [ str , FoldingRangeKind ] ]
12531253 """
12541254 Describes the kind of the folding range such as 'comment' or 'region'. The kind
12551255 is used to categorize folding ranges and used by commands like 'Fold all comments'.
@@ -3322,7 +3322,7 @@ class CodeAction(TypedDict):
33223322
33233323 title : str
33243324 """A short, human-readable, title for this code action."""
3325- kind : NotRequired [' CodeActionKind' ]
3325+ kind : NotRequired [Union [ str , CodeActionKind ] ]
33263326 """
33273327 The kind of the code action.
33283328
@@ -3389,7 +3389,7 @@ class CodeActionRegistrationOptions(TypedDict):
33893389 A document selector to identify the scope of the registration. If set to null
33903390 the document selector provided on the client side will be used.
33913391 """
3392- codeActionKinds : NotRequired [List [' CodeActionKind' ]]
3392+ codeActionKinds : NotRequired [List [Union [ str , CodeActionKind ] ]]
33933393 """
33943394 CodeActionKinds that this server may return.
33953395
@@ -4624,7 +4624,7 @@ class TextDocumentItem(TypedDict):
46244624
46254625 uri : DocumentUri
46264626 """The text document's uri."""
4627- languageId : ' LanguageKind'
4627+ languageId : Union [ str , LanguageKind ]
46284628 """The text document's language identifier."""
46294629 version : int
46304630 """
@@ -4804,7 +4804,7 @@ class ServerCapabilities(TypedDict):
48044804 server.
48054805 """
48064806
4807- positionEncoding : NotRequired [' PositionEncodingKind' ]
4807+ positionEncoding : NotRequired [Union [ str , PositionEncodingKind ] ]
48084808 """
48094809 The position encoding the server picked from the encodings offered
48104810 by the client via the client capability `general.positionEncodings`.
@@ -4987,7 +4987,7 @@ class FileSystemWatcher(TypedDict):
49874987
49884988 @since 3.17.0 support for relative patterns.
49894989 """
4990- kind : NotRequired [' WatchKind' ]
4990+ kind : NotRequired [Union [ Uint , WatchKind ] ]
49914991 """
49924992 The kind of events of interest. If omitted it defaults
49934993 to WatchKind.Create | WatchKind.Change | WatchKind.Delete
@@ -5419,7 +5419,7 @@ class CodeActionContext(TypedDict):
54195419 that these accurately reflect the error state of the resource. The primary parameter
54205420 to compute code actions is the provided range.
54215421 """
5422- only : NotRequired [List [' CodeActionKind' ]]
5422+ only : NotRequired [List [Union [ str , CodeActionKind ] ]]
54235423 """
54245424 Requested kind of actions to return.
54255425
@@ -5452,7 +5452,7 @@ class CodeActionDisabled(TypedDict):
54525452class CodeActionOptions (TypedDict ):
54535453 """Provider options for a {@link CodeActionRequest}."""
54545454
5455- codeActionKinds : NotRequired [List [' CodeActionKind' ]]
5455+ codeActionKinds : NotRequired [List [Union [ str , CodeActionKind ] ]]
54565456 """
54575457 CodeActionKinds that this server may return.
54585458
@@ -6123,7 +6123,7 @@ class CodeActionKindDocumentation(TypedDict):
61236123 @proposed
61246124 """
61256125
6126- kind : ' CodeActionKind'
6126+ kind : Union [ str , CodeActionKind ]
61276127 """
61286128 The kind of the code action being documented.
61296129
@@ -6513,7 +6513,7 @@ class GeneralClientCapabilities(TypedDict):
65136513
65146514 @since 3.16.0
65156515 """
6516- positionEncodings : NotRequired [List [' PositionEncodingKind' ]]
6516+ positionEncodings : NotRequired [List [Union [ str , PositionEncodingKind ] ]]
65176517 """
65186518 The position encodings supported by the client. Client and server
65196519 have to agree on the same position encoding to ensure that offsets
@@ -7886,7 +7886,7 @@ class ClientCodeLensResolveOptions(TypedDict):
78867886class ClientFoldingRangeKindOptions (TypedDict ):
78877887 """@since 3.18.0"""
78887888
7889- valueSet : NotRequired [List [' FoldingRangeKind' ]]
7889+ valueSet : NotRequired [List [Union [ str , FoldingRangeKind ] ]]
78907890 """
78917891 The folding range kind values the client supports. When this
78927892 property exists the client also guarantees that it will
@@ -8003,7 +8003,7 @@ class ClientSignatureParameterInformationOptions(TypedDict):
80038003class ClientCodeActionKindOptions (TypedDict ):
80048004 """@since 3.18.0"""
80058005
8006- valueSet : List [' CodeActionKind' ]
8006+ valueSet : List [Union [ str , CodeActionKind ] ]
80078007 """
80088008 The code action kind values the client supports. When this
80098009 property exists the client also guarantees that it will
0 commit comments