Archipelago/worlds/zillion
Doug Hoskisson b5343a36ff
Core: fix settings API for removal of Python 3.8, 3.9 (#4280)
* Core: fix settings API for removal of Python 3.8, 3.9

This is fixing 2 problems:
- The `World` class has the annotation:
  `settings: ClassVar[Optional["Group"]]`
  so `MyWorld.settings` should not raise an exception like it does for some worlds.
  With the `Optional` there, it looks like it should return `None` for the worlds that don't use it. So that's what I changed it to.

- `Group.update` had some code that required `typing.Union` instead of the Python 3.10 `|` for unions.

added unit test for this fix
added change in Zillion that I used to discover this problem and used it to test the test

* fix copy-pasted stuff

* tuple instead of set

Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>

---------

Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
2024-11-29 21:17:56 +01:00
..
docs Docs: replacing "setting" to "option" in world docs (#2622) 2024-03-22 17:46:14 +01:00
test Various worlds: Fix more absolute world imports (#3510) 2024-06-27 08:51:27 +02:00
__init__.py Core: fix settings API for removal of Python 3.8, 3.9 (#4280) 2024-11-29 21:17:56 +01:00
client.py Zillion: more rooms added to map_gen option (#3634) 2024-07-10 23:11:47 -07:00
config.py Zillion: apworld-compatible package data (#2860) 2024-03-03 16:23:02 +01:00
empty-zillion-map-row-col-labels-281.png Zillion: map tracker in client (#1136) 2022-10-27 02:30:22 -07:00
gen_data.py Zillion: more rooms added to map_gen option (#3634) 2024-07-10 23:11:47 -07:00
id_maps.py Zillion: remove rom requirement for generation (#2875) 2024-03-03 22:10:14 +01:00
item.py
logic.py Zillion: fix logic cache (#3719) 2024-09-18 21:09:47 +02:00
options.py Core: purge py3.8 and py3.9 (#3973) 2024-11-27 03:28:00 +01:00
patch.py Core: add layer for patches that don't use `Patch.py` (#2889) 2024-03-14 22:29:29 +01:00
py.typed
region.py Zillion: use Option.current_key 2023-03-07 08:33:33 +01:00
requirements.txt Zillion: more rooms added to map_gen option (#3634) 2024-07-10 23:11:47 -07:00