Fix typing in FrameTransformer usage