Skip to content

Commit

Permalink
py3.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Jan 7, 2025
1 parent bae1e63 commit 9d2b8bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monkay/cages.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ def monkay_get(self, default: T | DEFAULT | None = None) -> T | DEFAULT | None:
if tup is Undefined:
original: T | type[Undefined] = monkay_dict["monkay_original"]
if original is not Undefined:
return cast(DEFAULT | None, original)
return cast("DEFAULT | None", original)
else:
return default
else:
return cast(tuple[int | None, T], tup)[1]
return cast("tuple[int | None, T]", tup)[1]

def monkay_reset(self, token: Token):
self.monkay_context_var.reset(token)
Expand Down

0 comments on commit 9d2b8bb

Please sign in to comment.