TagTuple Class — flask Architecture
Architecture documentation for the TagTuple class in tag.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 0c2d77ed_7b87_d79f_b8c4_0dba5dd6631b["TagTuple"] a0222544_1c8a_9b62_d419_e9d66bd3544a["JSONTag"] 0c2d77ed_7b87_d79f_b8c4_0dba5dd6631b -->|extends| a0222544_1c8a_9b62_d419_e9d66bd3544a 5e2eed77_f23f_513d_2d00_d39ce63b14ab["tag.py"] 0c2d77ed_7b87_d79f_b8c4_0dba5dd6631b -->|defined in| 5e2eed77_f23f_513d_2d00_d39ce63b14ab b7cea14f_99e8_0ca6_5d0b_931d50c7e4c5["check()"] 0c2d77ed_7b87_d79f_b8c4_0dba5dd6631b -->|method| b7cea14f_99e8_0ca6_5d0b_931d50c7e4c5 15ec7d87_e960_3291_6727_d49d7474f492["to_json()"] 0c2d77ed_7b87_d79f_b8c4_0dba5dd6631b -->|method| 15ec7d87_e960_3291_6727_d49d7474f492 709f8fe8_b01f_68f3_b1fb_636dd30d9542["to_python()"] 0c2d77ed_7b87_d79f_b8c4_0dba5dd6631b -->|method| 709f8fe8_b01f_68f3_b1fb_636dd30d9542
Relationship Graph
Source Code
src/flask/json/tag.py lines 133–144
class TagTuple(JSONTag):
__slots__ = ()
key = " t"
def check(self, value: t.Any) -> bool:
return isinstance(value, tuple)
def to_json(self, value: t.Any) -> t.Any:
return [self.serializer.tag(item) for item in value]
def to_python(self, value: t.Any) -> t.Any:
return tuple(value)
Domain
Defined In
Extends
Source
Frequently Asked Questions
What is the TagTuple class?
TagTuple is a class in the flask codebase, defined in src/flask/json/tag.py.
Where is TagTuple defined?
TagTuple is defined in src/flask/json/tag.py at line 133.
What does TagTuple extend?
TagTuple extends JSONTag.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free