But if you make item attack_parameters use warmup it isn't accounted into shooting speed tooltip.
To quickly explain, this code :
rifle.attack_parameters.warmup=20;
rifle.attack_parameters.cooldown=60;
sniper_rifle.attack_parameters.warmup=80;
sniper_rifle.attack_parameters.cooldown=40;
results in game in :
"Rifle - Shooting speed : 1/s"
"Sniper Rifle - Shooting speed : 1.5/s"
which is straight up wrong and could be considered bug.
Real shooting speed values when you hold space and aim at target are 0.75/s and 0.5/s respectively.
So my suggestion is just - to calculate warmup time into rounds/second tooltip for weapon

Aditionally game could show warmup time if it's not 0... But I'm not sure about that one... Maybe warmup being showed would add unnecessary information bloat. As long as shoot/second will be calculated correctly - end user won't be cheated about real performance of gun.
I now think, I have choosen wrong place for this post.. But it felt wrong to post it in vanilla bugs, since it has no attachment to vanilla game whatsovewer.