black
black copied to clipboard
Unnatural break due to overzealous omitting of optional parentheses
Expected:
if A:
if B:
thread_items[0].some_attribute_access = ( # some comment in this place
an_object.a_method_call()
)
Actual:
if A:
if B:
thread_items[
0
].some_attribute_access = ( # some comment in this place
an_object.a_method_call()
)
Better example without comments:
thread_items[0].some_attribute_access = (
a_module.an_object.a_rather_longish_method_name_called()
)
this is still a problem with v22.3
actual:
self.file_name = inbound_path.split("/")[-1].split(".")[
0
] # extract file name from path
expected:
self.file_name = inbound_path.split("/")[-1].split(".")[0] # extract file name from path
or
self.file_name = inbound_path.split("/")[-1].split(".")[0]
# extract file name from path
why has this not been resolved yet?
2018 created 2019 2020 2021 2022 2023 today :D