That's a step further than I'm willing to go :D. For example, the other day, I was able to do
settingToToggle: KeysWithTypeOf<SomeObject, boolean>
which (after properly defining `KeysWithTypeOf`) allowed me to specify that `settingToToggle` should be a string literal that is a key on `SomeObject` whose corresponding value is a boolean.Typescript comes closest to fully letting me express my intentions statically and curtly, and while I hope Python's static typing will grow to be as expressive as Typescript, I think that day is still afar off.