Home / Class/ PassList Class — flask Architecture

PassList Class — flask Architecture

Architecture documentation for the PassList class in tag.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  3ca27189_9383_0864_49c1_53182220aa45["PassList"]
  a0222544_1c8a_9b62_d419_e9d66bd3544a["JSONTag"]
  3ca27189_9383_0864_49c1_53182220aa45 -->|extends| a0222544_1c8a_9b62_d419_e9d66bd3544a
  5e2eed77_f23f_513d_2d00_d39ce63b14ab["tag.py"]
  3ca27189_9383_0864_49c1_53182220aa45 -->|defined in| 5e2eed77_f23f_513d_2d00_d39ce63b14ab
  f031e7ac_9416_c5ed_6828_561bd233bb52["check()"]
  3ca27189_9383_0864_49c1_53182220aa45 -->|method| f031e7ac_9416_c5ed_6828_561bd233bb52
  69465ad8_d82d_7ee1_5bff_a7971021cf79["to_json()"]
  3ca27189_9383_0864_49c1_53182220aa45 -->|method| 69465ad8_d82d_7ee1_5bff_a7971021cf79

Relationship Graph

Source Code

src/flask/json/tag.py lines 147–156

class PassList(JSONTag):
    __slots__ = ()

    def check(self, value: t.Any) -> bool:
        return isinstance(value, list)

    def to_json(self, value: t.Any) -> t.Any:
        return [self.serializer.tag(item) for item in value]

    tag = to_json

Domain

Extends

Frequently Asked Questions

What is the PassList class?
PassList is a class in the flask codebase, defined in src/flask/json/tag.py.
Where is PassList defined?
PassList is defined in src/flask/json/tag.py at line 147.
What does PassList extend?
PassList extends JSONTag.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free