This repository has no description
1from rich import print
2from rich.pretty import pprint
3
4
5class meta1(type):
6 def __repr__(self):
7 return repr({})
8
9
10class test1(metaclass=meta1): ...
11
12
13print(test1)
14pprint(test1)
15
16
17class meta2(type):
18 def __rich_repr__(self):
19 yield {}
20
21
22class test2(metaclass=meta2): ...
23
24
25print(test2)
26pprint(test2)