You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+1-7
Original file line number
Diff line number
Diff line change
@@ -99,11 +99,5 @@ When pylint produces a false positive, it can be squashed with annotations like
99
99
Code should have [type annotations](https://www.python.org/dev/peps/pep-0484/).
100
100
We use [mypy](http://mypy-lang.org/) to check that type annotations are correct.
101
101
When type checking produces a false positive, it can be ignored with annotations like `# type: ignore`.
102
-
- **Python 2 Convertibility**.
103
-
Code must avoid constructs which fail to translate to python 2.
104
-
Cirq is written in python 3, but we use [3to2](https://pypi.org/project/3to2/) (and some custom tooling) to automatically translate the code into runnable python 2 code.
105
-
This translation step is not perfect.
106
-
For example, `max([], default=2)` fails to translate.
107
-
We check that the translation worked by testing the translated code against the translated tests.
108
-
Cirq has several utilities to help the translation process along, such as the `@cirq.testing.only_test_in_python3` decorator for tests that check functionality specific to python 3.
0 commit comments