aloof-angle-91616
11/18/2019, 6:31 AMawait Get[X](...)
is now type-checked to return X
in https://github.com/pantsbuild/pants/pull/8639, allowing the use of x = await Get[X](Y, y)
or x = await Get[X](Y(...))
, where the result of the await
is statically known to have the X
type. This allows mypy to check that uses of x
are type-safe without a separate annotation.witty-crayon-22786
11/18/2019, 3:33 PMaloof-angle-91616
11/18/2019, 4:44 PMaloof-angle-91616
11/18/2019, 4:44 PMwitty-crayon-22786
11/18/2019, 5:07 PMaloof-angle-91616
11/18/2019, 5:07 PMawait Get[X](...)
syntax for now, super easy to do in a followup. i kept the docstrings/etc from that part. thanks for low-latency feedback!!aloof-angle-91616
11/18/2019, 5:08 PM