SeparatedPathType Class — flask Architecture
Architecture documentation for the SeparatedPathType class in cli.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD f5f5575d_34d9_36a7_453e_43defadcef4c["SeparatedPathType"] a96499c3_f8a9_e782_f156_1c1ee4a86c69["cli.py"] f5f5575d_34d9_36a7_453e_43defadcef4c -->|defined in| a96499c3_f8a9_e782_f156_1c1ee4a86c69 8eb5bdbd_196f_b1b3_4db6_12b57e8cf31c["convert()"] f5f5575d_34d9_36a7_453e_43defadcef4c -->|method| 8eb5bdbd_196f_b1b3_4db6_12b57e8cf31c
Relationship Graph
Source Code
src/flask/cli.py lines 867–879
class SeparatedPathType(click.Path):
"""Click option type that accepts a list of values separated by the
OS's path separator (``:``, ``;`` on Windows). Each value is
validated as a :class:`click.Path` type.
"""
def convert(
self, value: t.Any, param: click.Parameter | None, ctx: click.Context | None
) -> t.Any:
items = self.split_envvar_value(value)
# can't call no-arg super() inside list comprehension until Python 3.12
super_convert = super().convert
return [super_convert(item, param, ctx) for item in items]
Domain
Defined In
Source
Frequently Asked Questions
What is the SeparatedPathType class?
SeparatedPathType is a class in the flask codebase, defined in src/flask/cli.py.
Where is SeparatedPathType defined?
SeparatedPathType is defined in src/flask/cli.py at line 867.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free