LAMaglan / PokeFightSimulator

A (simple) fight simulator between any two Pokemon using FastAPI with Jinja frontend
0 stars 0 forks source link

Is `global` in FastAPI necessary? #57

Closed LAMaglan closed 5 months ago

LAMaglan commented 5 months ago

Investigate. Could be that I can modify type_advantages and pokemon_names_list without adding global in whatever functions that change them in FastAPI. Although from a Python point of view, it is probably best practice (i.e. keep global)

LAMaglan commented 5 months ago

Somewhat confusingly, it is not strictly necessary for type_advantages, but it is for pokemon_names_list.