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 | class="st">""" |
| 172 | You shouldn&class="cm">#x27;t use this class directly. |
| 173 | |
| 174 | It&class="cm">#x27;s used internally to recognize when a default value has been overwritten, even |
| 175 | if the new value is `None`. |
| 176 | class="st">""" |
| 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(class="st">"DefaultType") |