Kaydet (Commit) 9454d8e8 authored tarafından Anthony Sottile's avatar Anthony Sottile

Document adding trailing commas for classes

üst a6b521e0
...@@ -158,6 +158,16 @@ Note that this would cause a **`SyntaxError`** in earlier python versions. ...@@ -158,6 +158,16 @@ Note that this would cause a **`SyntaxError`** in earlier python versions.
) )
``` ```
### trailing comma for class definitions
```diff
class C(
Base1,
- Base2
+ Base2,
): pass
```
### unhug trailing paren ### unhug trailing paren
```diff ```diff
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment