Skip to content

Commit 605ed65

Browse files
committed
Add compatibility for mypy 0.960
Tested on python/mypy@128661c. Also reported as python/mypy#12861.
1 parent a4658dc commit 605ed65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy_nonfloat_decimal/mypy_nonfloat_decimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_function_hook(
2929
:param fullname: full name of the type to consider
3030
:return: callback for specific type call
3131
"""
32-
if fullname == "decimal.Decimal":
32+
if fullname in ("_decimal.Decimal", "decimal.Decimal"):
3333
return analyze_decimal_call
3434
return None
3535

0 commit comments

Comments
 (0)