Skip to content

Commit d4a71c5

Browse files
author
Nativ Thousandyear
authored
Update future_style.md
psf#4429 issue address: updated "add new line after imports" preview style features update (examples added to documentation).
1 parent 203cafa commit d4a71c5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/the_black_code_style/future_style.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@ Currently, the following features are included in the preview style:
2626
statements, except when the line after the import is a comment or an import statement
2727
### Example:
2828

29-
####Before: `always_one_newline_after_import` is disabled:
29+
###Before: `always_one_newline_after_import` is disabled:
3030

3131
import pandas as pd
3232
import numpy as np
3333
def calculate_statistics(data): # No newline after imports
34-
mean = np.mean(data)
3534
median = np.median(data)
36-
return mean, median
35+
mean = np.mean(data)
36+
return median, mean
3737

38-
####After:`always_one_newline_after_import` is enabled:
38+
###After:`always_one_newline_after_import` is enabled:
3939

4040
import pandas as pd
4141
import numpy as np
4242

4343
def calculate_statistics(data): # Newline after imports
44-
mean = np.mean(data)
4544
median = np.median(data)
46-
return mean, median
45+
mean = np.mean(data)
46+
return median, mean
4747

4848

49-
49+
************************************************************************************8
5050
- `wrap_long_dict_values_in_parens`: Add parentheses around long values in dictionaries
5151
([see below](labels/wrap-long-dict-values))
5252

0 commit comments

Comments
 (0)