vishalmore90 commented on PR #76977:
URL: https://github.com/apache/airflow/pull/76977#issuecomment-6872198130

   Thank you so much for the thorough review, You're right — `30` vs `30.0` and 
`True` vs `1` compare equal under `__eq__`, but produce different strings under 
`json.dumps()`, which violated the hash/equality contract.
   
   I have updated the PR to adopt the recursive `freeze()` approach into 
`frozenset` and `tuple` structures. This keeps equal numeric/boolean values on 
identical hashes, eliminates the need for `import json`, and handles arbitrary 
nested lists, dicts, and sets cleanly. I have also added test cases in 
`test_callback.py` covering equal int/float and boolean/int kwargs comparisons.
   
   


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