Yelp / bravado

Bravado is a python client library for Swagger 2.0 services
Other
605 stars 117 forks source link

How do I make a request with a sanitizing name `async`? #491

Closed george-kuanli-peng closed 11 months ago

george-kuanli-peng commented 11 months ago

How do I make a request with a sanitizing name async? async is a Python reserved keyword and cannot be used in keyword arguments.

george-kuanli-peng commented 11 months ago

Workaround: pass the "asyc" parameter with a dictionary and unpack the dictionary with **.

macisamuele commented 11 months ago

Yeah... Unfortunately the mentioned workaround is the only option available. Closing this as a solution to the issue has been communicated already