19 Apr
2022
19 Apr
'22
6:24 p.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.