Commit 56efeed2 authored by Nsukami Patrick's avatar Nsukami Patrick
Browse files

[mypy] Correctly add type:ignore comments

parent b9359ad53cea
Pipeline #103593 passed with stages
in 1 minute and 32 seconds
......@@ -152,9 +152,9 @@ def format_constraint(cstr: IConstraint) -> str:
elif "Boundary" in cclass:
return "%s(%s %s)" % (
cclass,
quoted(cstr.operator),
str(cstr.boundary),
) # type:ignore[attr-defined]
quoted(cstr.operator), # type:ignore[attr-defined]
str(cstr.boundary), # type:ignore[attr-defined]
)
else:
print("formatter: unhandled constraint type", cstr.__class__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment