It depends. Replacing all of the flooring in a rental property is an improvement, not a repair. In contrast, mending a hole in a carpet is a currently deductible repair.
See this help article for more information and instructions on entering improvements to a rental property in TurboTax.
For further guidance on this issue, see IRS Pub. 527 - Residential Rental Property