Skip to content

Commit 93a11ae

Browse files
committed
Fix import (Python < 3.11 compat)
1 parent 9c12dbf commit 93a11ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pytest_bdd/gherkin_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import textwrap
66
import typing
77
from dataclasses import dataclass, field
8-
from typing import Any, Dict, List, Optional
8+
from typing import Any
99

1010
from gherkin.errors import CompositeParserException
1111
from gherkin.parser import Parser
@@ -14,7 +14,7 @@
1414
from . import exceptions
1515

1616
if typing.TYPE_CHECKING:
17-
from typing import Self
17+
from typing_extensions import Self
1818

1919

2020
ERROR_PATTERNS = [

0 commit comments

Comments
 (0)