mollie / mollie-api-python

Mollie API client for Python
http://www.mollie.com
BSD 2-Clause "Simplified" License
113 stars 55 forks source link

Remove incorrect type annotation from **kwargs #287

Closed whyscream closed 1 year ago

whyscream commented 1 year ago

**kwargs should be annotated using only the type of the value in a keyword=value keyword argument.

Typing this as f.i. **kwargs: str means that all provided argument values need to be strings, which we can't support: .list(limit=47) uses an int, and it is valid usage. This leaves us with Any for now.