From 26bac27ab31e8778a3c09899ef278eed966a44e6 Mon Sep 17 00:00:00 2001 From: thenav56 Date: Mon, 3 Nov 2025 11:28:35 +0545 Subject: [PATCH] fix: treat UNDEFINED as bool when used with bool --- functions/generated/pyfirebase/pyfirebase_mapswipe/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py b/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py index dc92a83..392ce68 100644 --- a/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py +++ b/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py @@ -20,6 +20,10 @@ def __init__(self): ) TypesyncUndefined._instance = self + def __bool__(self) -> bool: + """Make UNDEFINED behave like False in boolean contexts.""" + return False + @classmethod def __get_pydantic_core_schema__(cls, source, handler) -> core_schema.CoreSchema: return core_schema.with_info_plain_validator_function(cls.validate)