File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def AttributedOp : TestOp<"attributed_op"> {
123
123
// CHECK: attributes = {}
124
124
// CHECK: regions = None
125
125
// CHECK: attributes["i32attr"] = (i32attr if (
126
- // CHECK-NEXT: issubclass(type( i32attr) , _ods_ir.Attribute) or
126
+ // CHECK-NEXT: isinstance( i32attr, _ods_ir.Attribute) or
127
127
// CHECK-NEXT: not _ods_ir.AttrBuilder.contains('I32Attr')
128
128
// CHECK-NEXT: _ods_ir.AttrBuilder.get('I32Attr')(i32attr, context=_ods_context)
129
129
// CHECK: if optionalF32Attr is not None: attributes["optionalF32Attr"] = (optionalF32Attr
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ constexpr const char *multiResultAppendTemplate = "results.extend({0})";
534
534
// / there is no method registered to make it an Attribute.
535
535
constexpr const char *initAttributeWithBuilderTemplate =
536
536
R"Py( attributes["{1}"] = ({0} if (
537
- issubclass(type( {0}) , _ods_ir.Attribute) or
537
+ isinstance( {0}, _ods_ir.Attribute) or
538
538
not _ods_ir.AttrBuilder.contains('{2}')) else
539
539
_ods_ir.AttrBuilder.get('{2}')({0}, context=_ods_context)))Py" ;
540
540
@@ -547,7 +547,7 @@ constexpr const char *initAttributeWithBuilderTemplate =
547
547
// / there is no method registered to make it an Attribute.
548
548
constexpr const char *initOptionalAttributeWithBuilderTemplate =
549
549
R"Py( if {0} is not None: attributes["{1}"] = ({0} if (
550
- issubclass(type( {0}) , _ods_ir.Attribute) or
550
+ isinstance( {0}, _ods_ir.Attribute) or
551
551
not _ods_ir.AttrBuilder.contains('{2}')) else
552
552
_ods_ir.AttrBuilder.get('{2}')({0}, context=_ods_context)))Py" ;
553
553
You can’t perform that action at this time.
0 commit comments