thoward27 / grade

Re-definition found for builtin function PYL-W0622
Anti-pattern
Minor
4 years ago4 years old
Redefining built-in 'format'
17@click.option(
18    "--output", type=click.File("w"), default="-", help="optional file to write output to"
19)
20def report(format, output):21    """ Report in the default format to stdout. """
22    with open(".grade", "r") as fp:
23        grades = json.load(fp)
Redefining built-in 'input'
35        results = self._run(command, **kwargs)
36        return CompletedProcess(results)
37
38    def __init__(self, command, input=None, **kwargs):39        self.command = command
40        self.input = input
41        self.kwargs = kwargs
Redefining built-in 'copyright'
19# -- Project information -----------------------------------------------------
20
21project = "Grade"
22copyright = "2019, Tom Howard"23author = "Tom Howard"
24
25# The full version, including alpha/beta/rc tags