guan404ming opened a new pull request, #380:
URL: https://github.com/apache/tvm-ffi/pull/380

   ## Why
   
   Python's built-in list and dict return False when empty. However, Array and 
Map containers always returned True because they didn't implement __bool__, 
making bool(Array([])) and bool(Map({})) return True unexpectedly.
   
   ## How
   
   - Python: Implemented __bool__ for Array and Map returning len(self) > 0
   - Tests: Added parametrized tests verifying truthy/falsy behavior for empty 
and non-empty containers


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to