You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/11/02 18:19:57 UTC

[GitHub] [tvm] shingjan commented on a diff in pull request #13269: [Bugfix][TIR] Fix version conflict with `typing` for Python 3.9

shingjan commented on code in PR #13269:
URL: https://github.com/apache/tvm/pull/13269#discussion_r1012144471


##########
python/tvm/tir/schedule/_type_checker.py:
##########
@@ -21,12 +21,17 @@
 import inspect
 from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union
 import typing
+import sys
 
 
 def _is_none_type(type_: Any) -> bool:
     return type_ is None or type_ is type(None)
 
 
+def get_python_version():

Review Comment:
   nit: feels like we can just do something like `if sys.version_info >= (3, 9):`



-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org