1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

Add is_series type guard, with tests

This commit is contained in:
thatmattlove
2021-09-16 15:57:12 -07:00
parent 725631568e
commit 1a1b5aac2c
3 changed files with 20 additions and 2 deletions

View File

@@ -6,4 +6,4 @@ import typing as _t
_S = _t.TypeVar("_S")
Series = _t.Union[_t.MutableSequence[_S], _t.Tuple[_S], _t.Set[_S]]
"""Like Sequence, but excludes `str`."""
"""Like `typing.Sequence`, but excludes `str`."""