As of Scipy 1.9 there is now a keyword argument intergrality which accepts a boolean mask indicating which decision variables are constrained to be integers.
intergrality