Skip to content

Commit

Permalink
Added missing "raises" section to the docstring of check_type()
Browse files Browse the repository at this point in the history
Fixes #187.
  • Loading branch information
agronholm committed Oct 9, 2021
1 parent fba5af1 commit b506bb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/typeguard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ def check_type(argname: str, value, expected_type, memo: Optional[_TypeCheckMemo
(defaults to the calling frame's globals)
:param locals: dictionary of local variables to use for resolving forward references
(defaults to the calling frame's locals)
:raises TypeError: if there is a type mismatch
"""
if expected_type is Any or isinstance(value, Mock):
Expand Down

0 comments on commit b506bb4

Please sign in to comment.