Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
apply upgraded black 21.4b2 formatting to fbsource
Browse files Browse the repository at this point in the history
Summary:
This applies the formatting changes from black v21.4b2 to all covered
projects in fbsource. Most changes are to single line docstrings, as black
will now remove leading and trailing whitespace to match PEP8. Any other
formatting changes are likely due to files that landed without formatting,
or files that previously triggered errors in black.

Any changes to code should be AST identical. Any test failures are likely
due to bad tests, or testing against the output of pyfmt.

Reviewed By: thatch

Differential Revision: D28204910

fbshipit-source-id: 804725bcd14f763e90c5ddff1d0418117c15809a
  • Loading branch information
amyreese authored and facebook-github-bot committed May 5, 2021
1 parent 5e65df0 commit d0a090c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycls/datasets/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def construct_test_loader():


def shuffle(loader, cur_epoch):
""""Shuffles the data."""
""" "Shuffles the data."""
err_str = "Sampler type '{}' not supported".format(type(loader.sampler))
assert isinstance(loader.sampler, (RandomSampler, DistributedSampler)), err_str
# RandomSampler handles shuffling automatically
Expand Down

0 comments on commit d0a090c

Please sign in to comment.