# Path: pygls/lsp/types/basic_structures.py
# class Model(BaseModel):
#     class Config:
#         alias_generator = snake_to_camel
#         allow_population_by_field_name = True
#         fields = {
#             'from_': 'from'
#         }
# 
# class PartialResultParams(Model):
#     partial_result_token: Optional[ProgressToken]
# 
# class Range(Model):
#     start: Position
#     end: Position
# 
#     def __eq__(self, other):
#         return (
#             isinstance(other, Range)
#             and self.start == other.start
#             and self.end == other.end)
# 
#     def __hash__(self):
#         return hash((self.start, self.end))
# 
#     def __iter__(self):
#         return iter((self.start, self.end))
# 
#     def __repr__(self):
#         return f'{self.start!r}-{self.end!r}'
# 
# class StaticRegistrationOptions(Model):
#     id: Optional[str]
# 
# class TextDocumentIdentifier(Model):
#     uri: str
# 
# class TextDocumentRegistrationOptions(Model):
#     document_selector: Optional[DocumentSelector]
# 
# class WorkDoneProgressOptions(Model):
#     work_done_progress: Optional[ProgressToken]
# 
# class WorkDoneProgressParams(Model):
#     work_done_token: Optional[ProgressToken]


import enum
from typing import Dict, List, Optional, Union
from pygls.lsp.types.basic_structures import (Model, PartialResultParams, Range,
                                              StaticRegistrationOptions, TextDocumentIdentifier,
                                              TextDocumentRegistrationOptions,
                                              WorkDoneProgressOptions, WorkDoneProgressParams)

class SemanticTokensRequests(Model):
    range: Optional[Union[bool, Dict]]
    full: Optional[Union[bool, SemanticTokensRequestsFull]]


class SemanticTokensClientCapabilities(Model):
    requests: SemanticTokensRequests
    token_types: List[str]
    token_modifiers: List[str]
    formats: List[TokenFormat]
    overlapping_token_support: Optional[bool]
    multiline_token_support: Optional[bool]
    dynamic_registration: Optional[bool]


class SemanticTokensOptions(WorkDoneProgressOptions):
    legend: SemanticTokensLegend
    range: Optional[Union[bool, Dict]]
    full: Optional[Union[bool, SemanticTokensRequestsFull]]


class SemanticTokensRegistrationOptions(TextDocumentRegistrationOptions, SemanticTokensOptions, StaticRegistrationOptions):
    pass


class SemanticTokensParams(WorkDoneProgressParams, PartialResultParams):
    text_document: TextDocumentIdentifier



# Path: pygls/lsp/types/basic_structures.py
# class Model(BaseModel):
#     class Config:
#         alias_generator = snake_to_camel
#         allow_population_by_field_name = True
#         fields = {
#             'from_': 'from'
#         }
# 
# class PartialResultParams(Model):
#     partial_result_token: Optional[ProgressToken]
# 
# class Range(Model):
#     start: Position
#     end: Position
# 
#     def __eq__(self, other):
#         return (
#             isinstance(other, Range)
#             and self.start == other.start
#             and self.end == other.end)
# 
#     def __hash__(self):
#         return hash((self.start, self.end))
# 
#     def __iter__(self):
#         return iter((self.start, self.end))
# 
#     def __repr__(self):
#         return f'{self.start!r}-{self.end!r}'
# 
# class StaticRegistrationOptions(Model):
#     id: Optional[str]
# 
# class TextDocumentIdentifier(Model):
#     uri: str
# 
# class TextDocumentRegistrationOptions(Model):
#     document_selector: Optional[DocumentSelector]
# 
# class WorkDoneProgressOptions(Model):
#     work_done_progress: Optional[ProgressToken]
# 
# class WorkDoneProgressParams(Model):
#     work_done_token: Optional[ProgressToken]


# Path: pygls/lsp/types/language_features/semantic_tokens.py
import enum
from typing import Dict, List, Optional, Union
from pygls.lsp.types.basic_structures import (Model, PartialResultParams, Range,
                                              StaticRegistrationOptions, TextDocumentIdentifier,
                                              TextDocumentRegistrationOptions,
                                              WorkDoneProgressOptions, WorkDoneProgressParams)


class SemanticTokensRequests(Model):
    range: Optional[Union[bool, Dict]]
    full: Optional[Union[bool, SemanticTokensRequestsFull]]


class SemanticTokensClientCapabilities(Model):
    requests: SemanticTokensRequests
    token_types: List[str]
    token_modifiers: List[str]
    formats: List[TokenFormat]
    overlapping_token_support: Optional[bool]
    multiline_token_support: Optional[bool]
    dynamic_registration: Optional[bool]


class SemanticTokensOptions(WorkDoneProgressOptions):
    legend: SemanticTokensLegend
    range: Optional[Union[bool, Dict]]
    full: Optional[Union[bool, SemanticTokensRequestsFull]]


class SemanticTokensRegistrationOptions(TextDocumentRegistrationOptions, SemanticTokensOptions, StaticRegistrationOptions):
    pass


class SemanticTokensParams(WorkDoneProgressParams, PartialResultParams):
    text_document: TextDocumentIdentifier



class SemanticTokens(Model):