Skip to content

Commit dff0f12

Browse files
authored
Merge pull request pappasam#294 from dimbleby/simplify-type-union
2 parents a8b714d + 1bfe7bc commit dff0f12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jedi_language_server/jedi_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import threading
1010
from ast import PyCF_ONLY_AST
1111
from inspect import Parameter
12-
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union
12+
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple
1313

1414
import docstring_to_markdown
1515
import jedi.api.errors
@@ -424,7 +424,7 @@ def clean_completion_name(name: str, char_before_cursor: str) -> str:
424424
_PARAM_NAME_IGNORE = {"/", "*"}
425425

426426

427-
def get_snippet_signature(signature: Union[Signature, BaseSignature]) -> str:
427+
def get_snippet_signature(signature: BaseSignature) -> str:
428428
"""Return the snippet signature."""
429429
params: List[ParamName] = signature.params
430430
if not params:

0 commit comments

Comments
 (0)