Skip to content

Commit 58407db

Browse files
committed
Add type hints
1 parent e37fdad commit 58407db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpath/segments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def foldm(obj, f, acc):
406406
return acc
407407

408408

409-
def view(obj, glob):
409+
def view(obj: MutableMapping, glob: Glob):
410410
"""
411411
Return a view of the object where the glob matches. A view retains
412412
the same form as the obj, but is limited to only the paths that

0 commit comments

Comments
 (0)