@@ -142,7 +142,7 @@ class PyAffineConstantExpr : public PyConcreteAffineExpr<PyAffineConstantExpr> {
142142
143143 static void bindDerived (ClassTy &c) {
144144 c.def_static (" get" , &PyAffineConstantExpr::get, nb::arg (" value" ),
145- nb::arg (" context" ). none () = nb::none ());
145+ nb::arg (" context" ) = nb::none ());
146146 c.def_prop_ro (" value" , [](PyAffineConstantExpr &self) {
147147 return mlirAffineConstantExprGetValue (self);
148148 });
@@ -162,7 +162,7 @@ class PyAffineDimExpr : public PyConcreteAffineExpr<PyAffineDimExpr> {
162162
163163 static void bindDerived (ClassTy &c) {
164164 c.def_static (" get" , &PyAffineDimExpr::get, nb::arg (" position" ),
165- nb::arg (" context" ). none () = nb::none ());
165+ nb::arg (" context" ) = nb::none ());
166166 c.def_prop_ro (" position" , [](PyAffineDimExpr &self) {
167167 return mlirAffineDimExprGetPosition (self);
168168 });
@@ -182,7 +182,7 @@ class PyAffineSymbolExpr : public PyConcreteAffineExpr<PyAffineSymbolExpr> {
182182
183183 static void bindDerived (ClassTy &c) {
184184 c.def_static (" get" , &PyAffineSymbolExpr::get, nb::arg (" position" ),
185- nb::arg (" context" ). none () = nb::none ());
185+ nb::arg (" context" ) = nb::none ());
186186 c.def_prop_ro (" position" , [](PyAffineSymbolExpr &self) {
187187 return mlirAffineSymbolExprGetPosition (self);
188188 });
@@ -588,7 +588,7 @@ void mlir::python::populateIRAffine(nb::module_ &m) {
588588 self.getContext (),
589589 mlirAffineExprShiftDims (self, numDims, shift, offset));
590590 },
591- nb::arg (" num_dims" ), nb::arg (" shift" ), nb::arg (" offset" ). none () = 0 )
591+ nb::arg (" num_dims" ), nb::arg (" shift" ), nb::arg (" offset" ) = 0 )
592592 .def (
593593 " shift_symbols" ,
594594 [](PyAffineExpr &self, uint32_t numSymbols, uint32_t shift,
@@ -597,8 +597,7 @@ void mlir::python::populateIRAffine(nb::module_ &m) {
597597 self.getContext (),
598598 mlirAffineExprShiftSymbols (self, numSymbols, shift, offset));
599599 },
600- nb::arg (" num_symbols" ), nb::arg (" shift" ),
601- nb::arg (" offset" ).none () = 0 )
600+ nb::arg (" num_symbols" ), nb::arg (" shift" ), nb::arg (" offset" ) = 0 )
602601 .def_static (
603602 " simplify_affine_expr" ,
604603 [](PyAffineExpr &self, uint32_t numDims, uint32_t numSymbols) {
@@ -655,15 +654,15 @@ void mlir::python::populateIRAffine(nb::module_ &m) {
655654 " Gets an affine expression containing the rounded-up result "
656655 " of dividing an expression by a constant." )
657656 .def_static (" get_constant" , &PyAffineConstantExpr::get, nb::arg (" value" ),
658- nb::arg (" context" ). none () = nb::none (),
657+ nb::arg (" context" ) = nb::none (),
659658 " Gets a constant affine expression with the given value." )
660659 .def_static (
661660 " get_dim" , &PyAffineDimExpr::get, nb::arg (" position" ),
662- nb::arg (" context" ). none () = nb::none (),
661+ nb::arg (" context" ) = nb::none (),
663662 " Gets an affine expression of a dimension at the given position." )
664663 .def_static (
665664 " get_symbol" , &PyAffineSymbolExpr::get, nb::arg (" position" ),
666- nb::arg (" context" ). none () = nb::none (),
665+ nb::arg (" context" ) = nb::none (),
667666 " Gets an affine expression of a symbol at the given position." )
668667 .def (
669668 " dump" , [](PyAffineExpr &self) { mlirAffineExprDump (self); },
@@ -746,7 +745,7 @@ void mlir::python::populateIRAffine(nb::module_ &m) {
746745 return PyAffineMap (context->getRef (), map);
747746 },
748747 nb::arg (" dim_count" ), nb::arg (" symbol_count" ), nb::arg (" exprs" ),
749- nb::arg (" context" ). none () = nb::none (),
748+ nb::arg (" context" ) = nb::none (),
750749 " Gets a map with the given expressions as results." )
751750 .def_static (
752751 " get_constant" ,
@@ -755,23 +754,23 @@ void mlir::python::populateIRAffine(nb::module_ &m) {
755754 mlirAffineMapConstantGet (context->get (), value);
756755 return PyAffineMap (context->getRef (), affineMap);
757756 },
758- nb::arg (" value" ), nb::arg (" context" ). none () = nb::none (),
757+ nb::arg (" value" ), nb::arg (" context" ) = nb::none (),
759758 " Gets an affine map with a single constant result" )
760759 .def_static (
761760 " get_empty" ,
762761 [](DefaultingPyMlirContext context) {
763762 MlirAffineMap affineMap = mlirAffineMapEmptyGet (context->get ());
764763 return PyAffineMap (context->getRef (), affineMap);
765764 },
766- nb::arg (" context" ). none () = nb::none (), " Gets an empty affine map." )
765+ nb::arg (" context" ) = nb::none (), " Gets an empty affine map." )
767766 .def_static (
768767 " get_identity" ,
769768 [](intptr_t nDims, DefaultingPyMlirContext context) {
770769 MlirAffineMap affineMap =
771770 mlirAffineMapMultiDimIdentityGet (context->get (), nDims);
772771 return PyAffineMap (context->getRef (), affineMap);
773772 },
774- nb::arg (" n_dims" ), nb::arg (" context" ). none () = nb::none (),
773+ nb::arg (" n_dims" ), nb::arg (" context" ) = nb::none (),
775774 " Gets an identity map with the given number of dimensions." )
776775 .def_static (
777776 " get_minor_identity" ,
@@ -782,7 +781,7 @@ void mlir::python::populateIRAffine(nb::module_ &m) {
782781 return PyAffineMap (context->getRef (), affineMap);
783782 },
784783 nb::arg (" n_dims" ), nb::arg (" n_results" ),
785- nb::arg (" context" ). none () = nb::none (),
784+ nb::arg (" context" ) = nb::none (),
786785 " Gets a minor identity map with the given number of dimensions and "
787786 " results." )
788787 .def_static (
@@ -796,7 +795,7 @@ void mlir::python::populateIRAffine(nb::module_ &m) {
796795 context->get (), permutation.size (), permutation.data ());
797796 return PyAffineMap (context->getRef (), affineMap);
798797 },
799- nb::arg (" permutation" ), nb::arg (" context" ). none () = nb::none (),
798+ nb::arg (" permutation" ), nb::arg (" context" ) = nb::none (),
800799 " Gets an affine map that permutes its inputs." )
801800 .def (
802801 " get_submap" ,
@@ -923,7 +922,7 @@ void mlir::python::populateIRAffine(nb::module_ &m) {
923922 return PyIntegerSet (context->getRef (), set);
924923 },
925924 nb::arg (" num_dims" ), nb::arg (" num_symbols" ), nb::arg (" exprs" ),
926- nb::arg (" eq_flags" ), nb::arg (" context" ). none () = nb::none ())
925+ nb::arg (" eq_flags" ), nb::arg (" context" ) = nb::none ())
927926 .def_static (
928927 " get_empty" ,
929928 [](intptr_t numDims, intptr_t numSymbols,
@@ -933,7 +932,7 @@ void mlir::python::populateIRAffine(nb::module_ &m) {
933932 return PyIntegerSet (context->getRef (), set);
934933 },
935934 nb::arg (" num_dims" ), nb::arg (" num_symbols" ),
936- nb::arg (" context" ). none () = nb::none ())
935+ nb::arg (" context" ) = nb::none ())
937936 .def (
938937 " get_replaced" ,
939938 [](PyIntegerSet &self, const nb::list &dimExprs,
0 commit comments