Would love some type hints on how to adjust the ty...
# development
c
Would love some type hints on how to adjust the type hints (pun pun) for this PR (I’m pretty excited about the possibilities it opens up) https://github.com/pantsbuild/pants/pull/17745
👀 1
b
I have an idea for you
Commented, LMK if thats a direction you wanna head down
e
FWIW I use a Result type in Pex which has utilities to either guard a block and turn any raised exception into an Error or do the opposite and raise an exception from an Error. It has made Pex CLI main handling cleaner for pex-tools and pex3.
👀 2
c
Thanks, that’s some neat logic to borrow from in there 🙂 ( https://github.com/pantsbuild/pex/blob/main/pex/result.py )
LMK if thats a direction you wanna head down
thanks, nice idea.. but I’m not sure how to pull that one off (at least my heads not there yet..) 😬