Skip to content

Commit f53aacc

Browse files
committed
Fix lint
1 parent 6fb9a1d commit f53aacc

File tree

2 files changed

+7
-7
lines changed
  • include/tvm/script/printer
  • python/tvm/script/printer

2 files changed

+7
-7
lines changed

include/tvm/script/printer/doc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class AttrAccessDoc : public ExprDoc {
254254
/*!
255255
* \brief Constructor of AttrAccessDoc
256256
* \param value The target expression of attribute access.
257-
* \param attr The name of attribute to access.
257+
* \param name The name of attribute to access.
258258
*/
259259
explicit AttrAccessDoc(ExprDoc value, String name);
260260
TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS(AttrAccessDoc, ExprDoc, AttrAccessDocNode);

python/tvm/script/printer/doc.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ class Doc(Object):
3434
class ExprDoc(Object):
3535
"""Base class of all expression Docs"""
3636

37-
def attr(self, attr: str) -> "AttrAccessDoc":
37+
def attr(self, name: str) -> "AttrAccessDoc":
3838
"""
3939
Create a doc that represents attribute access on self.
4040
4141
Parameters
4242
----------
43-
attr : str
43+
name : str
4444
The attribute name to access
4545
4646
Returns
4747
-------
4848
doc : AttrAccessDoc
4949
"""
50-
return _ffi_api.ExprDocAttr(self, attr) # type: ignore
50+
return _ffi_api.ExprDocAttr(self, name) # type: ignore
5151

5252
def call(self, *args: Tuple["ExprDoc"], **kwargs: Dict[str, "ExprDoc"]) -> "CallDoc":
5353
"""
@@ -136,10 +136,10 @@ class AttrAccessDoc(ExprDoc):
136136
"""Doc that represents attribute access on an expression"""
137137

138138
value: ExprDoc
139-
attr: str
139+
name: str
140140

141-
def __init__(self, value: ExprDoc, attr: str):
142-
self.__init_handle_by_constructor__(_ffi_api.AttrAccessDoc, value, attr) # type: ignore
141+
def __init__(self, value: ExprDoc, name: str):
142+
self.__init_handle_by_constructor__(_ffi_api.AttrAccessDoc, value, name) # type: ignore
143143

144144

145145
@tvm._ffi.register_object("script.printer.IndexDoc")

0 commit comments

Comments
 (0)