Skip to content

Commit

Permalink
ruff and black fighting over ellipsis placement
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Jun 22, 2024
1 parent 22f5bac commit ebbd7fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ repos:
- id: ruff
args: [ --fix ]
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 24.1.1
hooks:
- id: black
6 changes: 2 additions & 4 deletions miniscope_io/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ class Frames(BaseModel):
frames: List[Frame]

@overload
def flatten_headers(self, as_dict: Literal[False]) -> List[SDBufferHeader]:
...
def flatten_headers(self, as_dict: Literal[False]) -> List[SDBufferHeader]: ...

@overload
def flatten_headers(self, as_dict: Literal[True]) -> List[dict]:
...
def flatten_headers(self, as_dict: Literal[True]) -> List[dict]: ...

def flatten_headers(self, as_dict: bool = False) -> Union[List[dict], List[SDBufferHeader]]:
"""
Expand Down

0 comments on commit ebbd7fd

Please sign in to comment.