mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-09-30 11:51:46 +02:00
fix: unquote self-referential annotation for pyupgrade
pyupgrade --py314-plus rewrites the quoted return annotation added in #345, failing pre-commit. The project requires Python 3.14, where annotations are evaluated lazily (PEP 649), so the unquoted form imports fine.
This commit is contained in:
1 parent
f43472cc9b
commit
71c1f20a51
1 file changed
+1
-1
@@ -86,7 +86,7 @@ class HybridRefusalClassifier:
|
|||||||
detector: RefusalDetector,
|
detector: RefusalDetector,
|
||||||
weight: float = 1.0,
|
weight: float = 1.0,
|
||||||
name: str | None = None,
|
name: str | None = None,
|
||||||
) -> "HybridRefusalClassifier":
|
) -> HybridRefusalClassifier:
|
||||||
"""Add a detection method with specified weight.
|
"""Add a detection method with specified weight.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|||||||
Reference in new issue
Block a user