diff --git a/.github/workflows/windows-conda.yml b/.github/workflows/windows-conda.yml
index 2c9d21472c5f997acc3ccf8f10da15832ed61a40..6b5d6aa18408fb445e926dd0b849bea925ce7146 100644
--- a/.github/workflows/windows-conda.yml
+++ b/.github/workflows/windows-conda.yml
@@ -39,6 +39,7 @@ jobs:
           -G "NMake Makefiles" ^
           -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
           -DCMAKE_BUILD_TYPE=Release ^
+          -DGENERATE_PYTHON_STUBS=ON ^
           -DPYTHON_SITELIB=%CONDA_PREFIX%\Lib\site-packages ^
           -DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^
           ..