You shouldn't use this class directly. It's used internally to recognize when a default value has been overwritten, even if the new value is `None`.
| 168 | |
| 169 | |
| 170 | class DefaultPlaceholder: |
| 171 | """ |
| 172 | You shouldn't use this class directly. |
| 173 | |
| 174 | It's used internally to recognize when a default value has been overwritten, even |
| 175 | if the new value is `None`. |
| 176 | """ |
| 177 | |
| 178 | def __init__(self, value: Any): |
| 179 | self.value = value |
| 180 | |
| 181 | def __bool__(self) -> bool: |
| 182 | return bool(self.value) |
| 183 | |
| 184 | |
| 185 | DefaultType = TypeVar("DefaultType") |
no outgoing calls
no test coverage detected
searching dependent graphs…