When calculating the value of a pull up resistor , i am dividing the Vcc voltage by the desired current value.
simulate this circuit – Schematic created using CircuitLab
But since impedance of the input pin and my pull up resistor are connected in series, shouldn't we take the 1 Mega Ohm input impedance into account when calculating the expected current value ?