Skip to content

Commit 7371b35

Browse files
committed
correct hover tests for python 3.8
1 parent 3cb7bc4 commit 7371b35

File tree

1 file changed

+1
-4
lines changed
  • tests/robotcode/language_server/robotframework/parts

1 file changed

+1
-4
lines changed

tests/robotcode/language_server/robotframework/parts/test_hover.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import asyncio
22
import re
3-
from os import PathLike
43
from pathlib import Path
54
from typing import Any, AsyncGenerator, Generator, Tuple, Union, cast
65

@@ -88,9 +87,7 @@ async def test_document(request: Any) -> AsyncGenerator[TextDocument, None]:
8887
TEST_EXPRESSION_LINE = re.compile(r"^\#\s*(?P<position>\^+)\s*(?P<name>[^:]+)\s*:\s*(?P<expression>.+)")
8988

9089

91-
def generate_tests_from_doc(
92-
path: Union[PathLike[str], str]
93-
) -> Generator[Tuple[Union[PathLike[str], str], str, int, int, str], None, None]:
90+
def generate_tests_from_doc(path: str) -> Generator[Tuple[str, str, int, int, str], None, None]:
9491
file = Path(path)
9592

9693
current_line = 0

0 commit comments

Comments
 (0)