I got annoyed trying to make all of my help string...
# development
a
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
Can I have you show this off in the "notable changes" section of March's meeting?
a
if it gets merged yes
b
Cool, thanks!
h
Neat!!!
a
We went with https://github.com/pantsbuild/pants/pull/18248 instead, to preserve the mypy-friendliness of
f
-strings wherever possible