Skip to content

Commit 6c306a9

Browse files
authored
Merge pull request #21 from nacezavrtanik/annotations
Type annotations added
2 parents 2be36b6 + f85b9c6 commit 6c306a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fuzzyfinder/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# -*- coding: utf-8 -*-
2+
from typing import Iterable, Iterator, Callable, Any
23
import re
34
from . import export
45

56

67
@export
7-
def fuzzyfinder(input, collection, accessor=lambda x: x, sort_results=True, ignore_case=True):
8+
def fuzzyfinder(
9+
input: str, collection: Iterable[str], accessor: Callable[[Any], str] = lambda x: x, sort_results: bool = True, ignore_case: bool = True
10+
) -> Iterator[str]:
811
"""
912
Args:
1013
input (str): A partial string which is typically entered by a user.

0 commit comments

Comments
 (0)