-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
F: parenthesesToo many parentheses, not enough parentheses, and so on.Too many parentheses, not enough parentheses, and so on.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?
Description
def infer_encoding_trajectory(encoding: EncodingElement,
observation: PoolingMessage,
prediction: PredictionMessage,
weights: hk.Params,
rng: Generator,
iterations: int) -> (
tuple[EncodingState, EncodingTrajectory]):
became
def infer_encoding_trajectory(
encoding: EncodingElement,
observation: PoolingMessage,
prediction: PredictionMessage,
weights: hk.Params,
rng: Generator,
iterations: int,
) -> (tuple[EncodingState, EncodingTrajectory]):
The parentheses were only there to allow wrapping and should have been removed. In general, black doesn't need to preserve parentheses around an entire expression, including a type annotation.
Metadata
Metadata
Assignees
Labels
F: parenthesesToo many parentheses, not enough parentheses, and so on.Too many parentheses, not enough parentheses, and so on.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?