From 3f786c867879ca1f8fded1d8fc7e35fe534cb015 Mon Sep 17 00:00:00 2001 From: Eviee Py Date: Sun, 10 Nov 2024 10:01:54 +1000 Subject: [PATCH] Make sure args are pos-only --- twitchio/ext/commands/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitchio/ext/commands/core.py b/twitchio/ext/commands/core.py index f7b1c8a9..f7991859 100644 --- a/twitchio/ext/commands/core.py +++ b/twitchio/ext/commands/core.py @@ -1018,7 +1018,7 @@ def get(self, key: str, default: VT, /) -> VT: ... @overload def get(self, key: str, default: DT, /) -> VT | DT: ... - def get(self, key: str, default: DT = None) -> VT | DT: + def get(self, key: str, default: DT = None, /) -> VT | DT: return super().get(key.casefold(), default) @overload @@ -1030,7 +1030,7 @@ def pop(self, key: str, default: VT, /) -> VT: ... @overload def pop(self, key: str, default: DT, /) -> VT | DT: ... - def pop(self, key: str, default: DT = MISSING) -> VT | DT: + def pop(self, key: str, default: DT = MISSING, /) -> VT | DT: if default is MISSING: return super().pop(key.casefold())