Skip to content

Commit 0972af1

Browse files
Import ParamSpec from typing
Available there since Python 3.10, which is now the minimum supported version. typing-extensions remains a dependency for NotRequired and Self, which need Python 3.11.
1 parent 9eeef42 commit 0972af1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/pytest_bdd/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
from __future__ import annotations
44

55
from collections.abc import Callable, Generator
6-
from typing import TYPE_CHECKING, TypeVar, cast
6+
from typing import TYPE_CHECKING, ParamSpec, TypeVar, cast
77

88
import pytest
9-
from typing_extensions import ParamSpec
109

1110
from . import cucumber_json, generation, gherkin_terminal_reporter, given, reporting, then, when
1211
from .utils import CONFIG_STACK

src/pytest_bdd/steps.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ def _(article):
4141
from collections.abc import Callable, Iterable
4242
from dataclasses import dataclass, field
4343
from itertools import count
44-
from typing import Literal, TypeVar
44+
from typing import Literal, ParamSpec, TypeVar
4545
from weakref import WeakKeyDictionary
4646

4747
import pytest
48-
from typing_extensions import ParamSpec
4948

5049
from .parser import Step
5150
from .parsers import StepParser, get_parser

0 commit comments

Comments
 (0)