TIL

Using the Python * (star) argument

In Python, functions can accept a * argument indicating the end of the positional arguments.

def do_something(value_one, value_two, *, test=True):
    pass

The * argument is useful when you want to enforce the use of keyword arguments after a certain point. This can be helpful while writing API or interface code where you want to ensure that certain arguments are always passed by keyword. This feature was introduced in PEP 3102