Skip to content

Commit ff1aaa5

Browse files
committed
setter
1 parent 0ca7604 commit ff1aaa5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

onnxscript/values.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def opset(self) -> Opset: ...
260260
@property
261261
def op_schema(self) -> Optional[onnx.defs.OpSchema]: ...
262262

263+
@property
263264
def signature(self) -> Optional[_schemas.OpSignature]: ...
264265

265266

@@ -335,6 +336,10 @@ def signature(self) -> Optional[_schemas.OpSignature]:
335336
self._signature = _schemas.OpSignature.from_op_schema(self.op_schema)
336337
return self._signature
337338

339+
@signature.setter
340+
def signature(self, value: _schemas.OpSignature):
341+
self._signature = value
342+
338343
@deprecation.deprecated(
339344
since="0.1",
340345
removed_in="the future",
@@ -528,6 +533,7 @@ def op_schema(self) -> Optional[onnx.defs.OpSchema]:
528533

529534
return self._op_schema
530535

536+
@property
531537
def signature(self) -> Optional[_schemas.OpSignature]:
532538
"""Returns the signature of this op."""
533539
if self._signature is not None:
@@ -541,6 +547,10 @@ def signature(self) -> Optional[_schemas.OpSignature]:
541547
)
542548
return self._signature
543549

550+
@signature.setter
551+
def signature(self, value: _schemas.OpSignature):
552+
self._signature = value
553+
544554
def __getitem__(self, instance):
545555
"""Returns a lambda to evaluate function using given evaluator instance.
546556
@@ -672,6 +682,10 @@ def signature(self) -> Optional[_schemas.OpSignature]:
672682
)
673683
return self._signature
674684

685+
@signature.setter
686+
def signature(self, value: _schemas.OpSignature):
687+
self._signature = value
688+
675689
@deprecation.deprecated(
676690
since="0.1",
677691
removed_in="the future",

0 commit comments

Comments
 (0)