junrushao commented on code in PR #268:
URL: https://github.com/apache/tvm-ffi/pull/268#discussion_r2532310362
##########
python/tvm_ffi/stub/utils.py:
##########
@@ -30,3 +34,124 @@ class Options:
files: list[str] = dataclasses.field(default_factory=list)
verbose: bool = False
dry_run: bool = False
+
+
[email protected](init=False)
+class NamedTypeSchema(TypeSchema):
+ """A type schema with an associated name."""
+
+ name: str
+
+ def __init__(self, name: str, schema: TypeSchema) -> None:
+ """Initialize a `NamedTypeSchema` with the given name and type
schema."""
+ super().__init__( # type: ignore[call-arg]
Review Comment:
Good catch!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]