Skip to content

Commit

Permalink
Fix linting issue with latest Ruff/python
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyus authored Mar 6, 2024
1 parent 7fe4dfb commit feb7a7c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/mopipe/core/analysis/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,10 @@ def __repr__(self) -> str:
return f"Pipeline(segments={self._segments})"

@t.overload
def __getitem__(self, index: int) -> Segment:
...
def __getitem__(self, index: int) -> Segment: ...

@t.overload
def __getitem__(self, index: slice) -> t.MutableSequence[Segment]:
...
def __getitem__(self, index: slice) -> t.MutableSequence[Segment]: ...

def __getitem__(self, index: t.Union[int, slice]):
return self._segments[index]
Expand Down

0 comments on commit feb7a7c

Please sign in to comment.