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

ancient-vegetable-10556

02/14/2023, 6:56 PM
I got annoyed trying to make all of my help strings use
{SomeField.alias}
and discovering that I had circular references, so for your edification, I give you
HelpString
. It looks like an
f
-string, but can be used to forward-refer to classes defined in the same file: https://github.com/pantsbuild/pants/pull/18246
help
on
Target
and
Field
subclasses now supports 0-argument lambdas, as long as you use the
help_text
helper function for help values! https://github.com/pantsbuild/pants/pull/18248
❤️ 1
b

busy-vase-39202

02/14/2023, 8:04 PM
Can I have you show this off in the "notable changes" section of March's meeting?
a

ancient-vegetable-10556

02/14/2023, 8:04 PM
if it gets merged yes
b

busy-vase-39202

02/14/2023, 8:04 PM
Cool, thanks!
h

happy-kitchen-89482

02/14/2023, 10:22 PM
Neat!!!
a

ancient-vegetable-10556

02/14/2023, 10:23 PM
We went with https://github.com/pantsbuild/pants/pull/18248 instead, to preserve the mypy-friendliness of
f
-strings wherever possible
2 Views