How to break a long line with multiple bracket pairs to follow PEP 8’s 79-character limit?
config["network"]["connection"]["client_properties"]["service"] = config["network"]["connection"]["client_properties"]["service"].format(service=service)
Using black, the opinionated, reproducible code formatter:
config["network"]["connection"]["client_properties"][
"service"
] = config["network"]["connection"]["client_properties"][
"service"
].format(
service=service
)