mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
fix(workflow): a prose comment must not open with a type-comment marker
A comment line introduced in 342cfc8545 wrapped so that it began with
``# type: number"``, which mypy reads as a PEP 484 type comment. It fails
to parse, mypy reports "Invalid syntax" and then stops — "errors prevented
further checking" — so the whole module and everything downstream of it
went unchecked. No runtime effect; the rewrap moves ``type:`` off the
start of the line.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
9f766e876a
commit
9871fe7b88
1 file changed
+2
-2
@@ -47,8 +47,8 @@ _LIST_OPERATORS = frozenset({"in", "not in", "all of"})
|
||||
# be either and ``!=`` / ``<>`` likewise -- the same ambiguity that keeps the
|
||||
# word forms (``equals``, ``gte``) rejected. The ordering forms carry none of
|
||||
# it: graphon has no string ordering operator at all
|
||||
# (``_assert_greater_than`` and its three siblings raise "Invalid actual value
|
||||
# type: number" for anything but a number), so ``>=`` can only mean ``≥``.
|
||||
# (``_assert_greater_than`` and its three siblings raise "Invalid actual
|
||||
# value type: number" for anything but a number), so ``>=`` can only mean ``≥``.
|
||||
# Guessing an equality would silently change which comparison the draft runs;
|
||||
# a loud refusal is the right outcome there.
|
||||
_ASCII_COMPARISON_OPERATORS: Mapping[str, str] = {
|
||||
|
||||
Reference in new issue
Block a user