str: the string of the module
(self)
| 375 | return object.__repr__(self) |
| 376 | |
| 377 | def __str__(self): |
| 378 | """str: the string of the module""" |
| 379 | try: |
| 380 | classname = self.__class__.__name__ |
| 381 | nice = self.__nice__() |
| 382 | return f'<{classname}({nice})>' |
| 383 | except NotImplementedError as ex: |
| 384 | warnings.warn(str(ex), category=RuntimeWarning) |
| 385 | return object.__repr__(self) |
| 386 | |
| 387 | |
| 388 | def ensure_rng(rng=None): |