https://pantsbuild.org/ logo
#general
Title
# general
b

bitter-ability-32190

05/18/2022, 6:41 PM
I have a macro I'm registering in
pants.toml
with
build_file_prelude_globs
which in it I put type hints (because I'm used to it). Specifically I used
foo: str | None = None
. Myself and all my devs use py 3.8. I can see
py3.8
being used in the Pants bootstrap env. I use the macro in a few places. ...and yet nothing errors (It should, the union syntax for the types wasn't added until 3.10). Until now. Someone just got the error. What's happening? I'm bewildered.
1
I'm guessing Pants is finding Python3.10 on my PATH and using it because it is newer than 3.8. So even though I have 3.8 as my python ICs whatever version Pants want to use for it's own purpose is up to it?
Yeah weird, I guess everyone but that person has py3.10 installed.
5 Views