File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 17
17
* Use type annotations where possible for function signatures and class members.
18
18
* Use type annotations where appropriate for local variables (e.g. ` var: List[int] = [] ` , or when the
19
19
type is hard or impossible to deduce.) Clear annotations help developers look up and validate API calls.
20
+ * If a line ends with an open bracket/brace/parentheses, the matching closing bracket should be at the
21
+ beginning of a line at the same indentation as the beginning of the line with the open bracket.
22
+ ``` python
23
+ stuff = {
24
+ x: y
25
+ for x, y in thing
26
+ if y > 2
27
+ }
28
+ ```
20
29
* New classes, attributes, and methods in core code should have docstrings that follow
21
30
[ reST style] ( https://peps.python.org/pep-0287/ ) .
22
31
* Worlds that do not follow PEP8 should still have a consistent style across its files to make reading easier.
You can’t perform that action at this time.
0 commit comments