nimi-python icon indicating copy to clipboard operation
nimi-python copied to clipboard

Implementation of __repr__ for custom types in nifake should be updated to use `__module__` and `__qualname__`

Open sbethur opened this issue 4 years ago • 0 comments

Description of issue

Best practice for implementing __repr__ for custom types is to use __module__ and __qualname__.

By including __module__ in __repr__, eval(repr(CustomType())) can be called by importing nifake as import nifake; which is consistent with recommended import style of nimi-python.

Related issue for making similar change in released modules: #1443

sbethur avatar Apr 29 '20 21:04 sbethur