Skip to content

Commit 0288a66

Browse files
authored
Remove unnecessary warning (#2327)
param_schemas is still used in many places in the code. The warning should be added only the package itself does not use it anymore. Looking at the code, the replacement is not really obvious.
1 parent 4ede24e commit 0288a66

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

onnxscript/values.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,6 @@ def opset(self) -> Opset:
320320
def op_schema(self) -> Optional[onnx.defs.OpSchema]:
321321
return self._op_schema
322322

323-
@deprecation.deprecated(
324-
since="0.1",
325-
removed_in="the future",
326-
instructions="check if '.op_schema' is not None instead",
327-
)
328323
def has_schema(self) -> bool:
329324
"""Returns True if this op has an OpSchema."""
330325
return self.op_schema is not None
@@ -345,11 +340,6 @@ def op_signature(self) -> Optional[_schemas.OpSignature]:
345340
def op_signature(self, value: _schemas.OpSignature):
346341
self._signature = value
347342

348-
@deprecation.deprecated(
349-
since="0.1",
350-
removed_in="the future",
351-
instructions="use '.op_signature' instead",
352-
)
353343
def param_schemas(self) -> Optional[tuple[ParamSchema, ...]]:
354344
"""Returns the parameter schemas for this op, if it has one."""
355345
if self._param_schemas is not None:
@@ -583,11 +573,6 @@ def __call__(self, *args: _P.args, **kwargs: _P.kwargs) -> _R:
583573
def __repr__(self) -> str:
584574
return f"{self.__class__.__name__}({self.function!r})"
585575

586-
@deprecation.deprecated(
587-
since="0.1",
588-
removed_in="the future",
589-
instructions="use '.op_signature' instead",
590-
)
591576
def param_schemas(self) -> tuple[ParamSchema, ...]:
592577
"""Returns the parameter schemas of this function."""
593578
if self._param_schemas is not None:
@@ -691,11 +676,6 @@ def op_signature(self) -> Optional[_schemas.OpSignature]:
691676
def op_signature(self, value: _schemas.OpSignature):
692677
self._signature = value
693678

694-
@deprecation.deprecated(
695-
since="0.1",
696-
removed_in="the future",
697-
instructions="use '.op_signature' instead",
698-
)
699679
def param_schemas(self) -> tuple[ParamSchema, ...]:
700680
"""Returns the parameter schemas of this function."""
701681
if self._param_schemas is not None:

0 commit comments

Comments
 (0)