From 068f18f0d7e41fd22004c7c72f56ea2cc66da9bc Mon Sep 17 00:00:00 2001 From: Jarno Date: Sat, 30 Aug 2025 13:24:16 +0200 Subject: [PATCH] Removed python 3.9 workaround --- worlds/satisfactory/ItemData.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/worlds/satisfactory/ItemData.py b/worlds/satisfactory/ItemData.py index 0356086fac..d5512f5472 100644 --- a/worlds/satisfactory/ItemData.py +++ b/worlds/satisfactory/ItemData.py @@ -33,15 +33,6 @@ class ItemGroups(IntFlag): ConveyorMk6 = 1 << 28 NeverExclude = 1 << 29 -# Workaround for Python 3.10 support. Iterating Flag instances was only added in Python 3.11. -if getattr(ItemGroups.Parts, "__iter__", None) is None: - def __iter__(self: ItemGroups): - for flag in ItemGroups: - if flag in self: - yield flag - ItemGroups.__iter__ = __iter__ # type: ignore - del __iter__ - class ItemData(NamedTuple): """Represents an item in the pool, it could be a resource bundle, production recipe, trap, etc.""" @@ -50,3 +41,4 @@ class ItemData(NamedTuple): type: ItemClassification = ItemClassification.filler count: int = 1 """How many of this item exists in the pool. 0 means none, but still defines the item so it can be added in the starting inventory for example""" +