Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for __bool__ (0.16 sec)

  1. fastapi/datastructures.py

        if the overridden default value was truthy.
        """
    
        def __init__(self, value: Any):
            self.value = value
    
        def __bool__(self) -> bool:
            return bool(self.value)
    
        def __eq__(self, o: object) -> bool:
            return isinstance(o, DefaultPlaceholder) and o.value == self.value
    
    
    DefaultType = TypeVar("DefaultType")
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top