Hysteresis calculation for "open-collector output comparator" with a pull-up resistor
The output pullup resistor does play a role in the calculation for the case of setting the high threshold. R3's value is essentially in series with the R4 feedback resistor. In similar manner when computing the low threshold the output impedance of the comparator is added to R4.

In both cases the output impedance and the R3 pullup value are typically much smaller values as compared to the value of the feedback resistor. You may have a pullup of 1K ohm and and an output impedance of 20 ohms and yet a feedback resistor on the order of 100K ohms or more. This makes the net contribution of their value to the threshold values rather small so that it is often simply ignored.