Skip to content

Commit

Permalink
misc.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Jan 1, 2024
1 parent 81dc62a commit 5ab005a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion functionalpy/_generate_pyi.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def flatten(self: Seq[TYPE[S] | T]) -> Seq[S]: ..."""
TypeMarker("tuple[S, ...]"),
TypeMarker("Sequence[S]"),
TypeMarker("list[S]"),
TypeMarker("Mapping[S, U]"),
TypeMarker("set[S]"),
TypeMarker("frozenset[S]"),
]:
Expand Down
6 changes: 0 additions & 6 deletions functionalpy/_sequence.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ class Seq(Generic[T]):
@overload
def flatten(self: Seq[list[S] | S]) -> Seq[S]: ...

# Mapping[S, U] # noqa: ERA001
@overload
def flatten(self: Seq[Mapping[S, U]]) -> Seq[S]: ...
@overload
def flatten(self: Seq[Mapping[S, U] | S]) -> Seq[S]: ...

# set[S] # noqa: ERA001
@overload
def flatten(self: Seq[set[S]]) -> Seq[S]: ...
Expand Down

0 comments on commit 5ab005a

Please sign in to comment.