Home / Class/ MyUuid Class — fastapi Architecture

MyUuid Class — fastapi Architecture

Architecture documentation for the MyUuid class in test_inherited_custom_class.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  507d8b9a_a2f0_530b_0b85_b0424b8783a7["MyUuid"]
  28da70dd_46c1_67e6_3846_754eca0b4f7d["test_inherited_custom_class.py"]
  507d8b9a_a2f0_530b_0b85_b0424b8783a7 -->|defined in| 28da70dd_46c1_67e6_3846_754eca0b4f7d
  97571bcd_d4a7_99f0_cd7d_11c835aae809["__init__()"]
  507d8b9a_a2f0_530b_0b85_b0424b8783a7 -->|method| 97571bcd_d4a7_99f0_cd7d_11c835aae809
  d7356e9e_496d_165d_0b12_10d57346e4e5["__str__()"]
  507d8b9a_a2f0_530b_0b85_b0424b8783a7 -->|method| d7356e9e_496d_165d_0b12_10d57346e4e5
  492d48b0_301a_09ca_c176_84179dc361c5["__class__()"]
  507d8b9a_a2f0_530b_0b85_b0424b8783a7 -->|method| 492d48b0_301a_09ca_c176_84179dc361c5
  b9f53c6c_6909_5ad5_0e24_9aaee2f41b00["__dict__()"]
  507d8b9a_a2f0_530b_0b85_b0424b8783a7 -->|method| b9f53c6c_6909_5ad5_0e24_9aaee2f41b00

Relationship Graph

Source Code

tests/test_inherited_custom_class.py lines 9–24

class MyUuid:
    def __init__(self, uuid_string: str):
        self.uuid = uuid_string

    def __str__(self):
        return self.uuid

    @property  # type: ignore
    def __class__(self):
        return uuid.UUID

    @property
    def __dict__(self):
        """Spoof a missing __dict__ by raising TypeError, this is how
        asyncpg.pgroto.pgproto.UUID behaves"""
        raise TypeError("vars() argument must have __dict__ attribute")

Domain

Frequently Asked Questions

What is the MyUuid class?
MyUuid is a class in the fastapi codebase, defined in tests/test_inherited_custom_class.py.
Where is MyUuid defined?
MyUuid is defined in tests/test_inherited_custom_class.py at line 9.

Analyze Your Own Codebase

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

Try Supermodel Free