google / google/styleguide

Confusing description for dictionary indentation

Open
#640 9 comments 1 reaction 1 assignee Claimed by @gpshead View on GitHub
enhancement lang:python
Dominant language
HTML
Stars
39.6k
Forks
12.9k
Avg merge
42m
Merged PRs (30d)
15

Description

Hello there,

I'm seeing 2 issues in Python style guide:

1. Chapter 3.9 is missing.
2. In chapter 3.4 Indentation, the 2nd example is incorrect. The comment is "# Aligned with opening delimiter in a dictionary", but this example is not aligned with the delimiter, using "4-space hanging indent" instead.

https://google.github.io/styleguide/pyguide.html#34-indentation
![missing](https://user-images.githubusercontent.com/86154792/122675703-3c1eee80-d20d-11eb-90ce-20190e488e83.jpg)

![indent](https://user-images.githubusercontent.com/86154792/122675648-f95d1680-d20c-11eb-9b13-5853ed4b1b43.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.