Skip to content

Commit

Permalink
apply new formatting config
Browse files Browse the repository at this point in the history
Summary:
pyfmt now specifies a target Python version of 3.8 when formatting
with black. With this new config, black adds trailing commas to all
multiline function calls. This applies the new formatting as part
of rolling out the linttool-integration for pyfmt.

paintitblack

Reviewed By: zertosh, lisroach

Differential Revision: D37084377

fbshipit-source-id: 781a1b883a381a172e54d6e447137657977876b4
  • Loading branch information
amyreese authored and facebook-github-bot committed Jun 10, 2022
1 parent 13a88f9 commit efe8eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypten/common/rng.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def generate_random_ring_element(size, ring_size=(2**64), generator=None, **kwar
size,
generator=generator,
dtype=torch.long,
**kwargs
**kwargs,
)
if rand_element.is_cuda:
return CUDALongTensor(rand_element)
Expand Down

0 comments on commit efe8eda

Please sign in to comment.