rspec/rules/S2316/python/rule.adoc

14 lines
237 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Backticks are a deprecated alias for ``++repr()++``. Don't use them any more, the syntax was removed in Python 3.0.
== Noncompliant Code Example
----
return `num` # Noncompliant
----
== Compliant Solution
----
return repr(num)
----