In Python 3, you can force a function to only accept keyword arguments (even without default values) by making the first parameter an asterisk *.

Example#

def myfunc(*, a, b, c):
    ...

Source#

Source