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

Implementation of __repr__ for custom types 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 nimi-python module as import nixyz; which is consistent with recommended import style of nimi-python.

Related issue for making similar change in nifake: #1444.

sbethur avatar Apr 29 '20 21:04 sbethur