It seems like the library is somehow unable to deal with accuracy changes, the exact error is shown below:
File "/home/a/miniforge3/envs/ml/lib/python3.12/site-packages/poke_env/environment/abstract_battle.py", line 571, in parse_message
self.get_pokemon(pokemon).boost(stat, int(amount))
File "/home/a/miniforge3/envs/ml/lib/python3.12/site-packages/poke_env/environment/pokemon.py", line 144, in boost
self._boosts[stat] += amount
~~~~~~~~~~~~^^^^^^
KeyError: 'accuracy'
It seems like the library is somehow unable to deal with accuracy changes, the exact error is shown below: