mvanhorn commented on PR #732:
URL: https://github.com/apache/burr/pull/732#issuecomment-4229500742

   @skrawcz good catch - that's a Python 3.9 import-time failure. 
`types.UnionType` was added in 3.10, and burr supports >=3.9 per 
pyproject.toml, so any 3.9 run hit AttributeError at test collection time 
before any test could run. Pyright was happy because I was running it on 3.10+, 
which is why I missed it.
   
   Fixed in 6776e86: introduced a `_UnionType` compatibility alias in 
`burr/core/action.py` (`types.UnionType` on 3.10+, a placeholder sentinel class 
on 3.9) and replaced every `types.UnionType` reference in both 
`burr/core/action.py` and `burr/integrations/pydantic.py`. PEP 604 syntax 
doesn't exist on 3.9 so no real union can reach those call sites anyway - the 
sentinel path is just there to keep the annotations well-formed at import time.
   
   Ran the full `tests/core/{test_action,test_application,test_graph}.py` 
suites in a clean venv: 250 passed.
   


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