File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 49
49
import pymbolic .primitives as p
50
50
import pytools .lex
51
51
from islpy import dim_type
52
- from pymbolic import ArithmeticExpressionT
53
52
from pymbolic .mapper import (
54
53
CachedCombineMapper as CombineMapperBase ,
55
54
CachedIdentityMapper as IdentityMapperBase ,
@@ -211,14 +210,8 @@ class FlattenMapper(FlattenMapperBase, IdentityMapperMixin):
211
210
pass
212
211
213
212
214
- ArithmeticOrExpressionT = TypeVar (
215
- "ArithmeticOrExpressionT" ,
216
- ArithmeticExpressionT ,
217
- ExpressionT )
218
-
219
-
220
- def flatten (expr : ArithmeticOrExpressionT ) -> ArithmeticOrExpressionT :
221
- return cast (ArithmeticOrExpressionT , FlattenMapper ()(expr ))
213
+ def flatten (expr ):
214
+ return FlattenMapper ()(expr )
222
215
223
216
224
217
class IdentityMapper (IdentityMapperBase , IdentityMapperMixin ):
You can’t perform that action at this time.
0 commit comments