custom.rst
3.32 KB
-
Change __init__(self) to __new__(cls) · 9ed8b440
__init__(self) cannot return values. According to https://stackoverflow.com/questions/2491819/how-to-return-a-value-from-init-in-python __new__(cls) should be used, which works.
Orell Garten committed