Skip to content

Commit

Permalink
fix: Add compatibility for mypy 0.960 (#3)
Browse files Browse the repository at this point in the history
reported as python/mypy#12861.
  • Loading branch information
rouge8 authored May 24, 2022
1 parent a4658dc commit 397da2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy_nonfloat_decimal/mypy_nonfloat_decimal.py
Original file line number Diff line number Diff line change
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 397da2d

Please sign in to comment.