Skip to content

Remove unnecessary warning #2327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions onnxscript/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,6 @@ def opset(self) -> Opset:
def op_schema(self) -> Optional[onnx.defs.OpSchema]:
return self._op_schema

@deprecation.deprecated(
since="0.1",
removed_in="the future",
instructions="check if '.op_schema' is not None instead",
)
def has_schema(self) -> bool:
"""Returns True if this op has an OpSchema."""
return self.op_schema is not None
Expand All @@ -345,11 +340,6 @@ def op_signature(self) -> Optional[_schemas.OpSignature]:
def op_signature(self, value: _schemas.OpSignature):
self._signature = value

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

@deprecation.deprecated(
since="0.1",
removed_in="the future",
instructions="use '.op_signature' instead",
)
def param_schemas(self) -> tuple[ParamSchema, ...]:
"""Returns the parameter schemas of this function."""
if self._param_schemas is not None:
Expand Down Expand Up @@ -691,11 +676,6 @@ def op_signature(self) -> Optional[_schemas.OpSignature]:
def op_signature(self, value: _schemas.OpSignature):
self._signature = value

@deprecation.deprecated(
since="0.1",
removed_in="the future",
instructions="use '.op_signature' instead",
)
def param_schemas(self) -> tuple[ParamSchema, ...]:
"""Returns the parameter schemas of this function."""
if self._param_schemas is not None:
Expand Down
Loading