
April 19, 2022
11:24 a.m.
For what it's worth, at runtime it will work fine to do this with: ``` def transpose(p: P) -> P: return { **p, "x": p['y'], "y": p['x'], } ``` MyPy complains about this but Pyre and Pyright both accept it.