Skip to content

Commit

Permalink
chore: fix capture
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 6, 2024
1 parent 9cc4e7e commit 937e7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion koerce/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ def __init__(self, key: str | Deferred | Builder, what=_any):
key = key.name
else:
raise TypeError("Only variables can be used as capture keys")
self.key = key
self.key = cython.cast(str, key)
self.what = pattern(what)

def __repr__(self) -> str:
Expand Down

0 comments on commit 937e7ea

Please sign in to comment.