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
[FIX] util/helpers: do not override docs in Python2
We cannot write to `__doc__` attributes of `namedtuple`s in Python2
```
Python 2.7.18 (default, Oct 15 2023, 16:43:11)
[GCC 11.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections import namedtuple
>>> x = namedtuple("X", "x")
>>> x.__doc__ = "x"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: attribute '__doc__' of 'type' objects is not writable
```
closes#101
Signed-off-by: Christophe Simonis (chs) <[email protected]>
0 commit comments