Infer kwarg types from defaults