Skip to content

Commit

Permalink
Remove types preserved from backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Nov 16, 2023
1 parent de7276d commit abf7582
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion generator/plugins/python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
PACKAGE_NAME = "lsprotocol"

# These are special type aliases to preserve backward compatibility.
custom_request_params_aliases = ["WorkspaceConfigurationParams"]
custom_request_params_aliases = []


def generate_from_spec(spec: model.LSPModel, output_dir: str, test_dir: str) -> None:
Expand Down
6 changes: 1 addition & 5 deletions packages/python/lsprotocol/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9208,9 +9208,6 @@ class WorkspaceWorkspaceFoldersResponse:
jsonrpc: str = attrs.field(default="2.0")


WorkspaceConfigurationParams = ConfigurationParams


WorkspaceConfigurationResult = Sequence[LSPAny]


Expand All @@ -9226,7 +9223,7 @@ class WorkspaceConfigurationRequest:

id: Union[int, str] = attrs.field()
"""The request id."""
params: WorkspaceConfigurationParams = attrs.field()
params: ConfigurationParams = attrs.field()
method: str = "workspace/configuration"
"""The method to be invoked."""
jsonrpc: str = attrs.field(default="2.0")
Expand Down Expand Up @@ -13125,7 +13122,6 @@ def is_special_property(cls: type, property_name: str) -> bool:
"WorkspaceClientCapabilities": WorkspaceClientCapabilities,
"WorkspaceCodeLensRefreshRequest": WorkspaceCodeLensRefreshRequest,
"WorkspaceCodeLensRefreshResponse": WorkspaceCodeLensRefreshResponse,
"WorkspaceConfigurationParams": WorkspaceConfigurationParams,
"WorkspaceConfigurationRequest": WorkspaceConfigurationRequest,
"WorkspaceConfigurationResponse": WorkspaceConfigurationResponse,
"WorkspaceConfigurationResult": WorkspaceConfigurationResult,
Expand Down

0 comments on commit abf7582

Please sign in to comment.