Skip to content

Commit

Permalink
disable invalid-name check by pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
mshr-h committed Oct 23, 2024
1 parent e4a78c1 commit d7dfe73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/tvm/relax/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# This feature is not supported until python 3.10:
# https://docs.python.org/3.10/whatsnew/3.10.html#pep-613-typealias
Expr = Union[tvm.ir.RelayExpr]
Type = Union[tvm.ir.Type]
Type = Union[tvm.ir.Type] # pylint: disable=invalid-name
GlobalVar = Union[tvm.ir.GlobalVar]


Expand Down
3 changes: 2 additions & 1 deletion python/tvm/tir/schedule/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def __init__(self) -> None:
# It is a workaround for mypy: https://github.com/python/mypy/issues/7866#issuecomment-549454370
# This feature is not supported until python 3.10:
# https://docs.python.org/3.10/whatsnew/3.10.html#pep-613-typealias
ExprRV = Union[PrimExpr] # A random variable that evaluates to an integer
# A random variable that evaluates to an integer
ExprRV = Union[PrimExpr] # pylint: disable=invalid-name

RAND_VAR_TYPE = Union[ExprRV, BlockRV, LoopRV] # pylint: disable=invalid-name

Expand Down

0 comments on commit d7dfe73

Please sign in to comment.