From 6938a2ad28b63e7cb8dd1f9993810a759882d8b7 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni Date: Thu, 30 Apr 2026 02:54:40 -0500 Subject: [PATCH 1/2] Treat NaN as constant in CallbackMapper. --- pymbolic/mapper/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pymbolic/mapper/__init__.py b/pymbolic/mapper/__init__.py index ea1dce6..d2fdbfe 100644 --- a/pymbolic/mapper/__init__.py +++ b/pymbolic/mapper/__init__.py @@ -1673,6 +1673,7 @@ def map_constant(self, expr: object, /, map_remainder = map_constant map_power = map_constant map_matmul = map_constant + map_nan = map_constant map_left_shift = map_constant map_right_shift = map_constant From 8814fb08099877d8acbd6cf7baf90c31eea59470 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni Date: Thu, 30 Apr 2026 03:00:51 -0500 Subject: [PATCH 2/2] update basedpyright/baseline.json --- .basedpyright/baseline.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index cce482d..e63d7cd 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -6389,6 +6389,14 @@ "lineCount": 1 } }, + { + "code": "reportUnannotatedClassAttribute", + "range": { + "startColumn": 4, + "endColumn": 11, + "lineCount": 1 + } + }, { "code": "reportUnannotatedClassAttribute", "range": {