Loading stubs/behave-stubs/model.pyi +5 −4 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ from typing import Iterator from typing import Literal from typing import Protocol from typing import Sequence from typing import SupportsIndex from .model_core import BasicStatement from .model_core import Replayable Loading Loading @@ -187,7 +188,7 @@ class Table(Replayable): def __init__(self, headings: Sequence[str], line: int = ..., rows: Sequence[Row] = ...): ... def __eq__(self, other: Any) -> bool: ... def __iter__(self) -> Iterator[Row]: ... def __getitem__(self, index: int) -> Row: ... def __getitem__(self, index: SupportsIndex) -> Row: ... def add_row(self, row: Sequence[str], line: int) -> None: ... def add_column(self, column_name: str, values: Iterable[str], default_value: str = ...) -> int: ... Loading Loading @@ -215,13 +216,13 @@ class Row: line: int = ..., comments: Sequence[str] = ..., ): ... def __getitem__(self, index: int) -> str: ... def __getitem__(self, index: SupportsIndex) -> str: ... def __eq__(self, other: Any) -> bool: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[str]: ... def items(self) -> Iterator[tuple[str, str]]: ... def get(self, key: int, default: str = ...) -> str: ... def get(self, key: SupportsIndex, default: str = ...) -> str: ... def as_dict(self) -> dict[str, str]: ... Loading @@ -246,5 +247,5 @@ class Text(str): def __init__(self, value: str, content_type: Literal["text/plain"] = ..., line: int = ...): ... def line_range(self) -> tuple[int, int]: ... def replace(self, old: str, new: str, count: int = ...) -> Text: ... def replace(self, old: str, new: str, count: SupportsIndex = ...) -> Text: ... def assert_equals(self, expected: str) -> bool: ... Loading
stubs/behave-stubs/model.pyi +5 −4 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ from typing import Iterator from typing import Literal from typing import Protocol from typing import Sequence from typing import SupportsIndex from .model_core import BasicStatement from .model_core import Replayable Loading Loading @@ -187,7 +188,7 @@ class Table(Replayable): def __init__(self, headings: Sequence[str], line: int = ..., rows: Sequence[Row] = ...): ... def __eq__(self, other: Any) -> bool: ... def __iter__(self) -> Iterator[Row]: ... def __getitem__(self, index: int) -> Row: ... def __getitem__(self, index: SupportsIndex) -> Row: ... def add_row(self, row: Sequence[str], line: int) -> None: ... def add_column(self, column_name: str, values: Iterable[str], default_value: str = ...) -> int: ... Loading Loading @@ -215,13 +216,13 @@ class Row: line: int = ..., comments: Sequence[str] = ..., ): ... def __getitem__(self, index: int) -> str: ... def __getitem__(self, index: SupportsIndex) -> str: ... def __eq__(self, other: Any) -> bool: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[str]: ... def items(self) -> Iterator[tuple[str, str]]: ... def get(self, key: int, default: str = ...) -> str: ... def get(self, key: SupportsIndex, default: str = ...) -> str: ... def as_dict(self) -> dict[str, str]: ... Loading @@ -246,5 +247,5 @@ class Text(str): def __init__(self, value: str, content_type: Literal["text/plain"] = ..., line: int = ...): ... def line_range(self) -> tuple[int, int]: ... def replace(self, old: str, new: str, count: int = ...) -> Text: ... def replace(self, old: str, new: str, count: SupportsIndex = ...) -> Text: ... def assert_equals(self, expected: str) -> bool: ...