Skip to content

Commit

Permalink
fix(codes): default top value in code matcher protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Oct 18, 2024
1 parent 4b9c8af commit 2e5590f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modos/codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Code:


class CodeMatcher(Protocol):
def find_codes(self, query: str, top: int) -> list[Code]:
def find_codes(self, query: str, top: int = 50) -> list[Code]:
...


Expand Down

0 comments on commit 2e5590f

Please sign in to comment.