From 274c7201f347f6a05b55bbf0c7b2895f7355dda4 Mon Sep 17 00:00:00 2001 From: Mads Ynddal Date: Wed, 12 Jun 2024 20:31:51 +0200 Subject: [PATCH] Clarify default kwargs code --- pyboy/pyboy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyboy/pyboy.py b/pyboy/pyboy.py index 01f34ec6f..fec910499 100644 --- a/pyboy/pyboy.py +++ b/pyboy/pyboy.py @@ -115,7 +115,7 @@ def __init__( for k, v in defaults.items(): if k not in kwargs: - kwargs[k] = kwargs.get(k, defaults[k]) + kwargs[k] = v _log_level(log_level)