junrushao1994 commented on a change in pull request #8467:
URL: https://github.com/apache/tvm/pull/8467#discussion_r669872457
##########
File path: python/tvm/tir/schedule/schedule.py
##########
@@ -43,7 +43,7 @@ class BlockRV(Object):
"""A random variable that refers to a block"""
-ExprRV = PrimExpr # A random variable that evaluates to an integer
+ExprRV = Union[PrimExpr] # A random variable that evaluates to an integer
Review comment:
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
--
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]