Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yelite committed Aug 12, 2022
1 parent 5c1bb54 commit 92c6499
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/tvm/script/printer/var_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def define(self, obj: Object, name_hint: str, object_path: ObjectPath, frame: Fr
doc : IdDoc
The doc for this variable.
"""
return _ffi_api.VarTableDefine(self, obj, name_hint, object_path, frame)
return _ffi_api.VarTableDefine(self, obj, name_hint, object_path, frame) # type: ignore # pylint: disable=no-member

def define_by_doc(self, obj: Object, doc_factory: Callable[[], ExprDoc], frame: Frame) -> None:
"""
Expand All @@ -78,7 +78,7 @@ def define_by_doc(self, obj: Object, doc_factory: Callable[[], ExprDoc], frame:
-------
None
"""
_ffi_api.VarTableDefineByDoc(self, obj, doc_factory, frame)
_ffi_api.VarTableDefineByDoc(self, obj, doc_factory, frame) # type: ignore # pylint: disable=no-member

def get_var_doc(self, obj: Object, object_path: ObjectPath) -> Optional[ExprDoc]:
"""
Expand All @@ -96,7 +96,7 @@ def get_var_doc(self, obj: Object, object_path: ObjectPath) -> Optional[ExprDoc]
doc : ExprDoc
The doc for this variable.
"""
return _ffi_api.VarTableGetVarDoc(self, obj, object_path)
return _ffi_api.VarTableGetVarDoc(self, obj, object_path) # type: ignore # pylint: disable=no-member

def is_var_defined(self, obj: Object) -> bool:
"""
Expand All @@ -112,7 +112,7 @@ def is_var_defined(self, obj: Object) -> bool:
is_defined : bool
Whether the variable is defined.
"""
return _ffi_api.VarTableIsVarDefined(self, obj)
return _ffi_api.VarTableIsVarDefined(self, obj) # type: ignore # pylint: disable=no-member

def __contains__(self, obj: Object) -> bool:
return self.is_var_defined(obj)

0 comments on commit 92c6499

Please sign in to comment.