Battery-electric trains (not hybrids) are certainly a promising emerging technology, however. Countries like the UK and Germany are looking to replace diesel trains with battery-electric on non-electrified branch lines:
https://www.railwaygazette.com/battery-traction-agreement-si...
Battery-electric trams are also a thing:
https://www.railtech.com/infrastructure/2019/12/12/first-uk-...