Skip to content

Commit

Permalink
Utils: Fix mistake made with KeyedDefaultDict from ArchipelagoMW#1933
Browse files Browse the repository at this point in the history
… that broke tracker functionality.
  • Loading branch information
ThePhar committed Jun 1, 2024
1 parent e49b1f9 commit 5d858f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ class KeyedDefaultDict(collections.defaultdict):
"""defaultdict variant that uses the missing key as argument to default_factory"""
default_factory: typing.Callable[[typing.Any], typing.Any]

def __init__(self, default_factory: typing.Callable[[Any], Any] = None, **kwargs):
super().__init__(default_factory, **kwargs)
def __init__(self, default_factory: typing.Callable[[Any], Any] = None, *args, **kwargs):
super().__init__(default_factory, *args, **kwargs)

def __missing__(self, key):
self[key] = value = self.default_factory(key)
Expand Down

0 comments on commit 5d858f2

Please sign in to comment.