https://pantsbuild.org/ logo
#development
Title
# development
c

curved-television-6568

12/08/2022, 2:47 PM
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

bitter-ability-32190

12/08/2022, 2:49 PM
I have an idea for you
Commented, LMK if thats a direction you wanna head down
e

enough-analyst-54434

12/08/2022, 5:08 PM
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

curved-television-6568

12/08/2022, 9:25 PM
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..) 😬