We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d1c46b commit d4a5271Copy full SHA for d4a5271
src/pytest_bdd/gherkin_parser.py
@@ -4,7 +4,7 @@
4
import re
5
import textwrap
6
import typing
7
-from collections.abc import Sequence
+from collections.abc import Mapping, Sequence
8
from dataclasses import dataclass, field
9
from typing import Any
10
@@ -297,7 +297,7 @@ class GherkinDocument:
297
comments: list[Comment]
298
299
@classmethod
300
- def from_dict(cls, data: dict[str, Any]) -> Self:
+ def from_dict(cls, data: Mapping[str, Any]) -> Self:
301
return cls(
302
feature=Feature.from_dict(data["feature"]),
303
comments=[Comment.from_dict(comment) for comment in data["comments"]],
0 commit comments