zxybazh commented on code in PR #12895:
URL: https://github.com/apache/tvm/pull/12895#discussion_r983983542


##########
python/tvm/meta_schedule/utils.py:
##########
@@ -114,7 +113,10 @@ def __init__(self, *args, **kwargs):
 
         def __getattr__(self, name: str):
             """Bridge the attribute function."""
-            return self._inst.__getattribute__(name)
+            try:
+                return self._inst.__getattribute__(name)
+            except AttributeError:
+                return super(TVMDerivedObject, self).__getattr__(name)

Review Comment:
   I think it's a [known 
bug](https://stackoverflow.com/questions/69330379/how-to-properly-type-hint-a-class-decorator)
 of mypy, which haven't been fixed. I didn't see better solution than mark as 
ignore though. 



-- 
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]

Reply via email to