mirror of https://github.com/astral-sh/ruff
[red-knot] update TODO comment in mdtest (#16242)
This comment gave wrong/misleading info about the reason for the wrong output, just updating it to be correct to avoid confusing our future selves.
This commit is contained in:
parent
a23e489c79
commit
00b022d472
|
|
@ -10,9 +10,8 @@ reveal_type(-3 // 3) # revealed: Literal[-1]
|
|||
reveal_type(-3 / 3) # revealed: float
|
||||
reveal_type(5 % 3) # revealed: Literal[2]
|
||||
|
||||
# TODO: This should emit an unsupported-operator error but we don't currently
|
||||
# verify that the actual parameter to `int.__add__` matches the declared
|
||||
# formal parameter type.
|
||||
# TODO: Should emit `unsupported-operator` but we don't understand the bases of `str`, so we think
|
||||
# it inherits `Unknown`, so we think `str.__radd__` is `Unknown` instead of nonexistent.
|
||||
reveal_type(2 + "f") # revealed: Unknown
|
||||
|
||||
def lhs(x: int):
|
||||
|
|
|
|||
Loading…
Reference in New Issue