OsamaGharibElwaly opened a new pull request, #77611:
URL: https://github.com/apache/airflow/pull/77611

   `Resource` and `Resources` define `__eq__` but their `__hash__` hashes a 
`dict`, so hashing raises `TypeError` and the values cannot be used in sets or 
as mapping keys. Hash immutable tuples of the values instead, and add tests 
covering equal values, distinct values and set membership.
   
   Checks run: `ruff check` and `ruff format --check` passed; a focused 
7-assertion self-check of both hash implementations passed. The full Task SDK 
pytest file could not run on this Windows host because its fixture imports 
Linux-only `fcntl`.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — OpenCode (Big Pickle)
   
   Generated-by: OpenCode (Big Pickle) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   
   ---
   
   Drafted-by: OpenCode (Big Pickle) (no human review before posting)
   


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