Skip to content

Commit 3963dd2

Browse files
authored
Treat NaN as constant in CallbackMapper. (#245)
1 parent 7e0c030 commit 3963dd2

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.basedpyright/baseline.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6389,6 +6389,14 @@
63896389
"lineCount": 1
63906390
}
63916391
},
6392+
{
6393+
"code": "reportUnannotatedClassAttribute",
6394+
"range": {
6395+
"startColumn": 4,
6396+
"endColumn": 11,
6397+
"lineCount": 1
6398+
}
6399+
},
63926400
{
63936401
"code": "reportUnannotatedClassAttribute",
63946402
"range": {

pymbolic/mapper/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,6 +1673,7 @@ def map_constant(self, expr: object, /,
16731673
map_remainder = map_constant
16741674
map_power = map_constant
16751675
map_matmul = map_constant
1676+
map_nan = map_constant
16761677

16771678
map_left_shift = map_constant
16781679
map_right_shift = map_constant

0 commit comments

Comments
 (0)