Tried to use this method to type my kwargs: https://github.com/microsoft/pylance-release/issues/2541#issuecomment-1448576066 it produced some mypy bug: https://github.com/microsoft/pylance-release/issues/2541#issuecomment-2517421890 I also opened a bug for pylance: https://github.com/microsoft/pylance-release/issues/6732#issue-2717774122