Path 1: 472 calls (0.74)

{} (452) {'_permanent': True, 'foo': 3} (3) dict (2) {'foo': 1, '_permanent': True} (2) {'_permanent': True, 'foo': 2} (2) {'foo': 1, '_permanent': Fa...

False (472)

1def check(self, value: t.Any) -> bool:
2        return (
3            isinstance(value, dict)
4            and len(value) == 1
5            and next(iter(value)) in self.serializer.tags
6        )
            

Path 2: 137 calls (0.21)

42 (13) True (11) 1 (11) 3 (10) 2 (9) 'Hello World' (8) False (7) Markup (6) list (6) (1, 2, 3) (5)

False (137)

1def check(self, value: t.Any) -> bool:
2        return (
3            isinstance(value, dict)
4            and len(value) == 1
5            and next(iter(value)) in self.serializer.tags
6        )
            

Path 3: 30 calls (0.05)

dict (8) {'testing': 42} (7) {'test': 'test'} (3) {'value': '42'} (2) {'foo': 42} (2) {' t': 'not-a-tuple'} (1) {' t__': 'not-a-tuple'} (1) {' di': 'n...

False (26) True (4)

1def check(self, value: t.Any) -> bool:
2        return (
3            isinstance(value, dict)
4            and len(value) == 1
5            and next(iter(value)) in self.serializer.tags
6        )