TagFoo Class — flask Architecture
Architecture documentation for the TagFoo class in test_json_tag.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD b74ca298_5995_0bc0_f0cc_eb087787973d["TagFoo"] 0da9a00f_0c71_13a7_a912_dc58238e5e4c["JSONTag"] b74ca298_5995_0bc0_f0cc_eb087787973d -->|extends| 0da9a00f_0c71_13a7_a912_dc58238e5e4c 80aa5251_fbdb_c0c2_cceb_06b0f77a6602["Foo"] b74ca298_5995_0bc0_f0cc_eb087787973d -->|extends| 80aa5251_fbdb_c0c2_cceb_06b0f77a6602 2813f787_e530_1726_de8d_611b77ff46a6["test_json_tag.py"] b74ca298_5995_0bc0_f0cc_eb087787973d -->|defined in| 2813f787_e530_1726_de8d_611b77ff46a6 9e6638d4_0c7d_7941_300d_114f342e5a8f["check()"] b74ca298_5995_0bc0_f0cc_eb087787973d -->|method| 9e6638d4_0c7d_7941_300d_114f342e5a8f 5b6ea997_ba87_97c3_978a_1146f75209c4["to_json()"] b74ca298_5995_0bc0_f0cc_eb087787973d -->|method| 5b6ea997_ba87_97c3_978a_1146f75209c4 f6508d42_6738_4ba2_8607_29a92caa7d21["to_python()"] b74ca298_5995_0bc0_f0cc_eb087787973d -->|method| f6508d42_6738_4ba2_8607_29a92caa7d21
Relationship Graph
Source Code
tests/test_json_tag.py lines 48–59
class TagFoo(JSONTag):
__slots__ = ()
key = " f"
def check(self, value):
return isinstance(value, Foo)
def to_json(self, value):
return self.serializer.tag(value.data)
def to_python(self, value):
return Foo(value)
Defined In
Source
Frequently Asked Questions
What is the TagFoo class?
TagFoo is a class in the flask codebase, defined in tests/test_json_tag.py.
Where is TagFoo defined?
TagFoo is defined in tests/test_json_tag.py at line 48.
What does TagFoo extend?
TagFoo extends JSONTag, Foo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free