Shantanu

Results 150 issues of Shantanu

Fixes #4129 This is not ready to be reviewed, was just curious if diff-shades surfaced something

This is a no-op change. That function was not a good way to tell if something is a function or a class, since it basically only worked for async functions...

skip news

See issue for 2023 here: https://github.com/psf/black/issues/3407 Here's what this issue is: - I've listed all the features we have enabled under `--preview` - ...in descending order of how controversial I...

Fixes #4043, fixes #619 These include nested functions and methods. I think the nested function case can quite clearly improve readability. I think the method case improves consistency, adherence to...

Originally reported at https://github.com/psf/black/issues/4042#issuecomment-1852645541 Repro: ``` class Random: def func(): random_service.status.active_states.inactive = ( make_new_top_level_state_from_dict( { "topLevelBase": { "secondaryBase": { "timestamp": 1234, "latitude": 1, "longitude": 2, "actionTimestamp": Timestamp( seconds=1530584000, nanos=0 ).ToJsonString(),...

T: bug
C: preview style

I found myself wanting to turn black off for a block of code, so I searched my brain and it came up with `# format: off`. This didn't work, so...

T: documentation
S: needs discussion

Black explodes the list in the following: ``` def foo(): assert long_long_long_long_var == [ 0, 1, 2, 3, 4, 10, 11, 12, 13, 14, 15, 16, 17, 18 ] ```...

T: bug
F: linebreak

This preview style change https://github.com/psf/black/pull/3796 violates E704 as implemented by flake8 / pycodestyle. Note that the change itself is PEP 8 compliant. E704 is disabled by default in pycodestyle for...

T: bug
F: empty lines
C: preview style