Skip to content

Commit

Permalink
Add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
moomoohk committed Dec 2, 2022
1 parent e37fdad commit 58407db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpath/segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def foldm(obj, f, acc):
return acc


def view(obj, glob):
def view(obj: MutableMapping, glob: Glob):
"""
Return a view of the object where the glob matches. A view retains
the same form as the obj, but is limited to only the paths that
Expand Down

0 comments on commit 58407db

Please sign in to comment.