hubmapconsortium / hubmap-api-py-client

Python client for the Cells API
MIT License
1 stars 0 forks source link

Mccalluc/accurate kwargs #59

Closed mccalluc closed 3 years ago

mccalluc commented 3 years ago

Classify the argument lists as either all, no_p, or where_has, so we can get the correct method signatures. This is picked up in the generated docs, and it will give us run time checks, so users can't supply the wrong kwargs.

>>> def f(expected=None):
...     pass
...
>>> f(unexpected='!')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: f() got an unexpected keyword argument 'unexpected'