Changed
- Updated README to be more explicit about how Darglint
handles types and style.
Fixed
- Qualified exceptions in a raise section were not being
handled correctly by the `FunctionDescription` class.
So, if you had a catch statement like,
def finish_me():
try:
raise requests.exceptions.ProxyError()
except requests.exceptions.ProxyError:
raise
It wouldn't have been handled correctly. That is, if
you documented `requests.exceptions.ProxyError` in the
docstring, darglint would throw an error. This change
resolves the situation, at lest somewhat. It expects
the documented exception and the caught exception to
match exactly.
- Implicitly raised exceptions which are rethrown was
also not handled. So, for example, if you had:
def throwing_up():
"""Throws up.
Raises:
ProxyError: If failed to yarf.
"""
try:
proxy_puke()
except ProxyError:
raise
Darglint would report an error. It no longer reports
an error in this case. See Issue 88 and Issue 68.