chore(lsprotocol): migrate to 2025.0.0 and cleanup artifacts
The changes align the project with the 2025.0.0 lsprotocol release, removing the old backport and updating type hints in the protocol hooks to use Sequence where appropriate. The dist-info and packaging metadata for older lsprotocol versions are replaced with the new 2025.0.0 artifacts. - Remove exceptiongroup backport used on Python <3.11 - Use Sequence instead of List in LS protocol hooks - Replace old dist-info with 2025.0.0 metadata
This commit is contained in:
@@ -573,7 +573,16 @@ def _package_ifneeded(args, parser):
|
||||
|
||||
|
||||
def _proc(args, parser):
|
||||
if len(args) != 3:
|
||||
required_args = ["name", "args", "body"]
|
||||
if len(args) < len(required_args):
|
||||
missing_args = ", ".join(required_args[len(args) :])
|
||||
raise CommandArgError(
|
||||
"missing required"
|
||||
f" argument{'s' if len(args) < len(required_args) - 1 else ''} for proc:"
|
||||
f" {missing_args}"
|
||||
)
|
||||
|
||||
if len(args) > len(required_args):
|
||||
raise CommandArgError(f"wrong # of args to proc: got {len(args)}, expected 3")
|
||||
|
||||
# Parse args as list, then iterate over each item to parse arg specifier lists and
|
||||
|
||||
Reference in New Issue
Block a user