lightzhan-intellif opened a new pull request, #13673:
URL: https://github.com/apache/tvm/pull/13673

   For the users who use vscode to write code, Pylance in vscode will shadow  
the code below the function calls `tvm.ir.load_json/save_json` and tell users 
"Code is unreachable" like the picture below:
    
   
![image](https://user-images.githubusercontent.com/28034077/210043063-670f71b4-c7f8-4353-a1dd-4985eca0edd1.png)
   
   The issue maybe confuses users and make the code a little "dirty".
   
   This PR fixes this by adding a return type hint to the functions `load_json` 
and `save_json`.


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