logo

... black: functions



Notes

All code will be formatted, not mere data containers. So if we start with this;

def open_up_this_here_file(filepath: os.PathLike, read_method: str = 'w', verbose: bool = True, debug: bool = False):
    """Does a whole bunch of things this one function does right here."""
    with open(filepath, read_method) as f:
        print(f.read())

We will end up with;

def open_up_this_here_file(
    filepath: os.PathLike,
    read_method: str = "w",
    verbose: bool = True,
    debug: bool = False,
):
    """Does a whole bunch of things this one function does right here."""
    with open(filepath, read_method) as f:
        print(f.read())

Feedback? See an issue? Something unclear? Feel free to mention it here.



If you want to be kept up to date, consider signing up for the newsletter.