PokeAPI / pokepy

A Python wrapper for PokéAPI
https://pokeapi.co
BSD 3-Clause "New" or "Revised" License
127 stars 27 forks source link

get_pokemon #62

Closed MaestroMaelstrom closed 4 years ago

MaestroMaelstrom commented 4 years ago

Hello,

hopefully this is helpful but it might be a simple mistake. I'm running through PyCharm for Windows.

Normally everything autofills for PyCharm which is true about the line pokepy.V2Client() but when I try to add .get_pokemon it highlights it and says, "Unresolved attribute reference 'get_pokemon' for class 'V2Client'" However the code does still run without errors.

image image

Not sure if this is fixable, or even a bug as I'm still lacking in a lot of coding skills and knowledge. My program is still in the very beginnings so excuse any horrid formatting.

Thanks, MaestroMaelstrom

Kronopt commented 4 years ago

That's just because all 'get_' methods are generated when V2Client is instantiated. So they don't actually exist when PyCharm tries to look for them. I know those "unresolved references" don't look good on PyCharm, but if you follow the documentation it should be ok! Any further questions feel free to ask them!