I noticed this change while testing Black master on our codebase:
step_adjustments["ScalingAdjustment"] = min(
- scaling_adjustment, -self.get_max_weight()
+ scaling_adjustment, -(self.get_max_weight())
)
Also (more justifiable):
- -2 ** 32,
- -2 ** 48,
- -2 ** 63,
+ -(2 ** 32),
+ -(2 ** 48),
+ -(2 ** 63),
I think the first example is a bug. A simpler repro:
$ black -c '-self.x()'
-(self.x())