Docs: minor updates to recommend modern PEP8 (#2384)

* docs: update world api for modern PEP8 conventions

* docs: update options api for modern PEP8 styling

* missed a spot
This commit is contained in:
Aaron Wagener
2023-11-15 10:07:42 -06:00
committed by GitHub
parent 2af5410301
commit bf8432faa7
3 changed files with 46 additions and 46 deletions

View File

@@ -29,6 +29,7 @@ The zip can contain arbitrary files in addition what was specified above.
## Caveats
Imports from other files inside the apworld have to use relative imports.
Imports from other files inside the apworld have to use relative imports. e.g. `from .options import MyGameOptions`
Imports from AP base have to use absolute imports, e.g. Options.py and worlds/AutoWorld.py.
Imports from AP base have to use absolute imports, e.g. `from Options import Toggle` or
`from worlds.AutoWorld import World`