Stash docstring for ReportParam in its helptext
attr
apparently assigning to `__doc__` was not working?
This commit is contained in:
parent
6ec98e0b09
commit
b273737162
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2019 Lance Edgar
|
# Copyright © 2010-2022 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -161,6 +161,7 @@ class ReportParam(object):
|
||||||
else:
|
else:
|
||||||
self.type = typ
|
self.type = typ
|
||||||
self.required = required
|
self.required = required
|
||||||
|
self.helptext = doc
|
||||||
self.__doc__ == doc
|
self.__doc__ == doc
|
||||||
kwargs.pop('__doc__', None)
|
kwargs.pop('__doc__', None)
|
||||||
for key, value in kwargs.items():
|
for key, value in kwargs.items():
|
||||||
|
|
Loading…
Reference in a new issue