DeanWay / fastapi-versioning

api versioning for fastapi web applications
MIT License
644 stars 63 forks source link

Avoid defining own dunder property(s) #1

Closed prostomarkeloff closed 4 years ago

prostomarkeloff commented 4 years ago

Is your feature request related to a problem? Please describe. In code used dunder property __api_version__ for function.

Describe the solution you'd like Just set the _api_version.

Describe alternatives you've considered This looks more pythonic, than your idea.

prostomarkeloff commented 4 years ago

https://github.com/DeanWay/fastapi-versioning/blob/7cff1c4892ec46ef43904829ec04afed36eef000/fastapi_versioning/versioning.py#L13

DeanWay commented 4 years ago

currently using _api_version