Skip to content

Commit

Permalink
Make sure args are pos-only
Browse files Browse the repository at this point in the history
  • Loading branch information
Eviee Py committed Nov 10, 2024
1 parent 7759f86 commit 3f786c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twitchio/ext/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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())

Expand Down

0 comments on commit 3f786c8

Please sign in to comment.