Open intgr opened 2 years ago
Using Black 21.9b0
Describe the style change
This code is successfully formatted and accepted by Black:
assert name.rfc4514_string( {NameOID.COMMON_NAME: "CommonName", NameOID.EMAIL_ADDRESS: "E"} ) == ("CommonName=Santa Claus,E=santa@northpole.fi") # ^ ^
The parenthesis on the last line are redundant and can be removed. I wouldn't expect the formatting to be changed by Black.
However, with this input:
assert name.rfc4514_string( {NameOID.COMMON_NAME: "CommonName", NameOID.EMAIL_ADDRESS: "E"} ) == "CommonName=Santa Claus,E=santa@northpole.fi"
The result is
assert ( name.rfc4514_string( {NameOID.COMMON_NAME: "CommonName", NameOID.EMAIL_ADDRESS: "E"} ) == "CommonName=Santa Claus,E=santa@northpole.fi" )
I'll label this as a bug, since clearly the parens could just be removed. Thanks for reporting!
Using Black 21.9b0
Describe the style change
This code is successfully formatted and accepted by Black:
The parenthesis on the last line are redundant and can be removed. I wouldn't expect the formatting to be changed by Black.
However, with this input:
The result is