Skip to content

Commit d143fbd

Browse files
⬆️🩹 Update pre-commit hook astral-sh/ty-pre-commit to v0.0.59 (#507)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 38241e3 commit d143fbd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ repos:
124124

125125
## Check Python types with ty
126126
- repo: https://github.com/astral-sh/ty-pre-commit
127-
rev: v0.0.58
127+
rev: v0.0.59
128128
hooks:
129129
- id: ty
130130
args: [--isolated]

src/mqt/yaqs/equivalence_checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from __future__ import annotations
1818

1919
import time
20-
from typing import TYPE_CHECKING, Literal, TypedDict, cast
20+
from typing import TYPE_CHECKING, Literal, TypedDict
2121

2222
from qiskit.converters import circuit_to_dag
2323

@@ -75,7 +75,7 @@ def _validate_representation(representation: str) -> Representation:
7575
if representation not in allowed:
7676
msg = f"representation must be one of {allowed!r}, got {representation!r}."
7777
raise ValueError(msg)
78-
return cast("Representation", representation)
78+
return representation
7979

8080

8181
def _validate_matrix_max_qubits(matrix_max_qubits: int) -> int:

0 commit comments

Comments
 (0)