Home / Function/ read_optional_list_bytes() — fastapi Function Reference

read_optional_list_bytes() — fastapi Function Reference

Architecture documentation for the read_optional_list_bytes() function in test_optional_list.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  c385a4bb_6eea_49fb_5d07_8799171af34d["read_optional_list_bytes()"]
  04e698d5_447d_679b_7e1b_39a05b89aa16["test_optional_list.py"]
  c385a4bb_6eea_49fb_5d07_8799171af34d -->|defined in| 04e698d5_447d_679b_7e1b_39a05b89aa16
  style c385a4bb_6eea_49fb_5d07_8799171af34d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_request_params/test_file/test_optional_list.py lines 16–17

async def read_optional_list_bytes(p: Annotated[Optional[list[bytes]], File()] = None):
    return {"file_size": [len(file) for file in p] if p else None}

Domain

Subdomains

Frequently Asked Questions

What does read_optional_list_bytes() do?
read_optional_list_bytes() is a function in the fastapi codebase, defined in tests/test_request_params/test_file/test_optional_list.py.
Where is read_optional_list_bytes() defined?
read_optional_list_bytes() is defined in tests/test_request_params/test_file/test_optional_list.py at line 16.

Analyze Your Own Codebase

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

Try Supermodel Free