Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
The `span` field was only ever used to construct a TIR constant with a
known span, wasn't used at any of its callsites.
  • Loading branch information
Lunderberg committed Feb 14, 2024
1 parent d8b9ab9 commit cd03dbc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/tvm/runtime/object_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def asobject(self):
ObjectTypes = (ObjectBase, NDArrayBase, Module, ObjectRValueRef, PackedFuncBase, PyNativeObject)


def convert_to_object(value, span=None):
def convert_to_object(value):
"""Convert a Python value to corresponding object type.
Type conversions performed by this function must *only* produce
Expand All @@ -54,9 +54,6 @@ def convert_to_object(value, span=None):
value : str
The value to be inspected.
span : Optional[Span]
The location of this itervar in the source code.
Returns
-------
obj : Object
Expand Down

0 comments on commit cd03dbc

Please sign in to comment.