<@U02KAN6061E> I put a proposal in a small interna...
# development
l
@bitter-ability-32190 I put a proposal in a small internal enhancement issue you raised in June https://github.com/pantsbuild/pants/issues/18856
b
I have a branch with the prototype of a really expressive syntax, but mypy is the killer there
And it's not worth uprooting our type-checker for 😔
l
👍 do you think you'll keep going on it? it would be fun to see what you came up with.
b
Maybe eventually if I feel like mypy would work. It's been a few months so I don't remember the details 😭
But the rule callsite had a type like
option_value: SubsystemName.option_name
Since the descriptor can return a type when called on the class and not the instance.
l
Interesting, so it wouldn't be returning an
OptionsInfo
, or maybe it would be returning some unique generated type that satisfies the OptionsInfo interface, ok
About how many occurrences of this pattern do you think we have? (there are two mentioned in the issue)
b
Interesting, so it wouldn't be returning an OptionsInfo, or maybe it would be returning some unique generated type that satisfies the OptionsInfo interface, ok
Yeah I think that's the special sauce
And idk about usage. All subsystems options could be migrated
l
+1. I am certainly timid in this area, and can see how it could be challenging to get type-checking to work. I'll look at some other issue. (no shortage of them 😛)
b
The benefit is less restarting of the daemon when people are changing options. So definitely a plus, but not insanely boosting