diff --git a/sumpy/codegen.py b/sumpy/codegen.py
index c4857fca0643f8106de1e3e9d4a8421dafa32e2d..670d0729f659f85bb4020ebb08fac56e3903fdca 100644
--- a/sumpy/codegen.py
+++ b/sumpy/codegen.py
@@ -502,12 +502,12 @@ class ComplexRewriter(CSECachingIdentityMapper, CallExternalRecMapper):
         super().__init__()
         self.complex_dtype = complex_dtype
 
-    def map_constant(self, expr, rec_self=None, *args, **kwargs):
+    def map_constant(self, expr, rec_self=None):
         """Convert complex values to numpy types
         """
         if not isinstance(expr, (complex, np.complex64, np.complex128)):
             return IdentityMapper.map_constant(rec_self or self, expr,
-                    rec_self=rec_self, *args, **kwargs)
+                    rec_self=rec_self)
 
         complex_dtype = self.complex_dtype
         if complex_dtype is None: