You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docstrings on property setters that are ignored by help() and tools like Sphinx: example from Python docs
Not in PEP8, but there are a few instances where default values are set in __init__() using property setters before the underlying attribute is declared, which will throw an AttributeError if that initial assignment isn't made.
These are pretty low-key, but it'll help keep the linters quiet
Description
Since #3041 it seems the templates have drifted a bit from PEP8 guidelines. A couple examples that jumped at me:
RESTClientObject
andApiClient
) refhelp()
and tools like Sphinx: example from Python docsNot in PEP8, but there are a few instances where default values are set in
__init__()
using property setters before the underlying attribute is declared, which will throw an AttributeError if that initial assignment isn't made.These are pretty low-key, but it'll help keep the linters quiet
Swagger-codegen version
2.2.0 and 2.3.0
Related issues
#3041
Suggest a Fix
I can clean up the templates a bit and create a PR (I did quite a bit of it already)
The text was updated successfully, but these errors were encountered: