Skip to content

Commit fe4ecf1

Browse files
committed
dedup
1 parent d038436 commit fe4ecf1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

generated/lsp_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6079,7 +6079,7 @@ class ParameterInformation(TypedDict):
60796079
have a label and a doc-comment.
60806080
"""
60816081

6082-
label: Union[str, list[Uint | Uint]]
6082+
label: Union[str, list[Uint]]
60836083
"""
60846084
The label of this parameter information.
60856085

utils/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def format_type(typ: EveryType, context: FormatTypeContext, preferred_structure_
9090
return f'Union[{", ".join(union)}]'
9191
elif typ['kind'] == 'tuple':
9292
union = [format_type(item, context, preferred_structure_kind) for item in typ['items']]
93-
return f'list[{" | ".join(union)}]'
93+
return f'list[{" | ".join(set(union))}]'
9494
elif typ['kind'] == 'literal':
9595
if not typ['value']['properties']:
9696
return 'Dict[str, LSPAny]'

0 commit comments

Comments
 (0)