Could then also change the code for IV, such that IV becomes a part of the class.
But maybe initialized "externally" whenever an endpoint is called, such that it is random each time
endpoint is accessed (details in another issue)
For type hint purposes, maybe easiest to make own (@data)class "Stats" with attributes "base_stat" and "effort" (and later, IV) which gets used in Pokemon
Currently, when parsing data from pokeapi, I only take the "base_stat" for each stat:
Such that I get something like
However, in the source data, it is actually:
I think what I should do is modify the Pokemon class, such that each stat looks something like:
Would then need to adjust all code accordingly
Could then also change the code for IV, such that IV becomes a part of the class. But maybe initialized "externally" whenever an endpoint is called, such that it is random each time endpoint is accessed (details in another issue)