remove _typing.py

This commit is contained in:
Will McGugan
2023-02-07 10:46:28 +00:00
parent bcf382d2ff
commit 5930ebf82e
32 changed files with 68 additions and 73 deletions

View File

@@ -1,5 +1,5 @@
from contextlib import nullcontext as does_not_raise
from typing import Any
from typing_extensions import Any
import pytest

View File

@@ -118,7 +118,6 @@ def pytest_sessionfinish(
diffs: List[SvgSnapshotDiff] = []
num_snapshots_passing = 0
for item in session.items:
# Grab the data our fixture attached to the pytest node
num_snapshots_passing += int(item.stash.get(TEXTUAL_SNAPSHOT_PASS, False))
snapshot_svg = item.stash.get(TEXTUAL_SNAPSHOT_SVG_KEY, None)

View File

@@ -3,6 +3,7 @@ import pytest
from typing import Sequence
from textual._immutable_sequence_view import ImmutableSequenceView
def wrap(source: Sequence[int]) -> ImmutableSequenceView[int]:
"""Wrap a sequence of integers inside an immutable sequence view."""
return ImmutableSequenceView[int](source)