From ad22c21972972db20e32bb62e7fa5b0327f4e211 Mon Sep 17 00:00:00 2001 From: Famlam Date: Wed, 28 Jun 2023 00:41:03 +0200 Subject: [PATCH] Fix "stringified" None values --- mapcss/mapcss_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapcss/mapcss_lib.py b/mapcss/mapcss_lib.py index e78162bce..d33566043 100644 --- a/mapcss/mapcss_lib.py +++ b/mapcss/mapcss_lib.py @@ -394,7 +394,7 @@ def count(lst): # returns the first object which is not null (formerly coalesce, [since 7164]) def any_(*args): if args is not None: - return next(item for item in args if item is not None) + return next(item for item in args if item is not None and (not isinstance(item, str_value_) or not item.none)) #concat(str1, str2, ...) # assemble the strings to one