I'm in the process of doing some dynamic documentation with a series of
functions.
1. I tried using a .format() method on the doc string, and it just
plain didn't work -- to the point that function.__doc__ was not set at all.
2. I tried dynamically appending the dynamic portion of the
documentation using function.__doc__ += DYNAMIC_DOC, and it works when
run, but Pylint complains
E:000, 0: Function 'function' has no '__doc__' member (no-member)
Yet, a dir(function) shows that there is indeed a __doc__ attribute.
I know this is a little unusual, but I'm trying to maintain a REST
application with lots of endpoints and some really silly non-harmonious
parameter --and no one available to fix the nightmare in the calling
packages!
So, it runs. Would a Pylint developer look to see if Pylint is wrong
about what a function has in the way of members?
_______________________________________________
code-quality mailing list -- code-quality@python.org
To unsubscribe send an email to code-quality-le...@python.org
https://mail.python.org/mailman3/lists/code-quality.python.org/