Skip to content

Force use of keyword arguments in method calls #19

@ahggns

Description

@ahggns

Method signatures are unstable due to a side effect of the implementation of #14. In order to prevent difficult to debug breaks we should force keyword arguments to be used.

This can be supported out of the box in Python 3:

def fun(*, arg1, arg2):
  pass

But we'll have to get creative for backcompat with Python 2:

def fun(*args, arg1, arg2):
   if args:
     raise ValueError("...")

@ferozco
cc @JacekLach, @jamding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions