Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:


- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
rev: v0.17.0
hooks:
- id: ruff
name: Lint with Ruff
Expand Down
4 changes: 2 additions & 2 deletions src/anarcii/input_data_processing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
from typing import Union

Input = Union[
Path, str, tuple[str, str], list[Union[str, tuple[str, str]]], dict[str, str]
Path, str, tuple[str, str], list[str | tuple[str, str]], dict[str, str]
]
SequenceDict = dict[Union[str, tuple[int, str]], str]
SequenceDict = dict[str | tuple[int, str], str]
# A TokenisedSequence is a torch.Tensor of dtype np.int32.
TokenisedSequence = torch.Tensor

Expand Down
Loading