Stash docstring for ReportParam in its helptext attr

apparently assigning to `__doc__` was not working?
This commit is contained in:
Lance Edgar 2022-01-31 16:51:26 -06:00
parent 6ec98e0b09
commit b273737162

View file

@ -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():