I believe the only syntax supported for Python (assuming it is supported) is the NOSONAR comment, so #NOSONAR
or # NOSONAR
at the end of the line where you want to ignore issues.
Unfortunately, this is a global issue suppression: it kills all issues on the line, not just those from a specific rule.