Skip to content

Commit d606f3e

Browse files
committed
[#5402] Being explicit what this applies to (it should not apply to things like >=)
1 parent 58f9ff3 commit d606f3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contributing/code/standards.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ Structure
103103
* Always use `identical comparison`_ unless you need type juggling;
104104

105105
* Use `Yoda conditions`_ when checking a variable against an expression to avoid
106-
an accidental assignment inside the condition statement;
106+
an accidental assignment inside the condition statement (this applies to ``==``,
107+
``!=``, ``===``, and ``!==``);
107108

108109
* Add a comma after each array item in a multi-line array, even after the
109110
last one;

0 commit comments

Comments
 (0)