TM1637Display.h inverted outputs needed

It is changing from INPUT to OUTPUT because it is emulating an open-drain (open collector? It has been a long day) output. They set the pin to an INPUT to let an external resistor pull it HIGH, and set it to an OUTPUT(which is already LOW) to pull the output LOW.
To do what you want to do, reverse the pinMode() calls to the CLK and DIO.