Method: flask.json.tag.TaggedJSONSerializer.untag
Calls: 70, Exceptions: 0, Paths: 3Back
Path 1: 28 calls (0.4)
dict (18) {' m': 'Testing'} (4) {' b': 'YQ=='} (1) {' b': '/w=='} (1) {' m': ''} (1) {' u': 'bf98e746ef394ab0ae286dd2081fb3a9'} (1) {' ...
Markup (5) ('message', 'Hello World') (4) ('error', 'Hello World') (4) tuple (4) (1, 2, 3) (4) bytes (2) dict (1) {' di': ' di'} (1) UUID (1) datetime...
1def untag(self, value: dict[str, t.Any]) -> t.Any:
2 """Convert a tagged representation back to the original type."""
3 if len(value) != 1:
4 return value
5
6 key = next(iter(value))
7
8 if key not in self.tags:
9 return value
10
11 return self.tags[key].to_python(value[key])
Path 2: 26 calls (0.37)
dict (9) {'test': 'test'} (6) {'testing': 42} (3) {'data': 'foo'} (3) {'value': '42'} (2) {'foo': 42} (1) {' di__': ' di'} (1) {'value': '616'} (1)
dict (9) {'test': 'test'} (6) {'testing': 42} (3) {'data': 'foo'} (3) {'value': '42'} (2) {'foo': 42} (1) {' di__': ' di'} (1) {'value': '616'} (1)
1def untag(self, value: dict[str, t.Any]) -> t.Any:
2 """Convert a tagged representation back to the original type."""
3 if len(value) != 1:
4 return value
5
6 key = next(iter(value))
7
8 if key not in self.tags:
9 return value
10
11 return self.tags[key].to_python(value[key])
Path 3: 16 calls (0.23)
{'_permanent': True, 'test': 42} (2) {'_permanent': True, 'foo': 1} (2) {'_permanent': True, 'foo': 2} (2) {'_permanent': True, 'foo': 3} (2) {'_perma...
{'_permanent': True, 'test': 42} (2) {'_permanent': True, 'foo': 1} (2) {'_permanent': True, 'foo': 2} (2) {'_permanent': True, 'foo': 3} (2) {'_perma...
1def untag(self, value: dict[str, t.Any]) -> t.Any:
2 """Convert a tagged representation back to the original type."""
3 if len(value) != 1:
4 return value
5
6 key = next(iter(value))
7
8 if key not in self.tags:
9 return value
10
11 return self.tags[key].to_python(value[key])