Skip to content

Commit

Permalink
Add compatibility for mypy 0.960
Browse files Browse the repository at this point in the history
Tested on
python/mypy@128661c.
Also reported as python/mypy#12861.
  • Loading branch information
rouge8 committed May 24, 2022
1 parent a4658dc commit 605ed65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy_nonfloat_decimal/mypy_nonfloat_decimal.py
Expand Up @@ -29,7 +29,7 @@ def get_function_hook(
:param fullname: full name of the type to consider
:return: callback for specific type call
"""
if fullname == "decimal.Decimal":
if fullname in ("_decimal.Decimal", "decimal.Decimal"):
return analyze_decimal_call
return None

Expand Down

0 comments on commit 605ed65

Please sign in to comment.