Skip to content

Commit 3541b99

Browse files
Update doc/whatsnew/fragments/10621.new_check
1 parent 38914db commit 3541b99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/whatsnew/fragments/10621.new_check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Add a ``consider-math-not-float`` message. ``float("nan")`` and ``float("inf")`` are slower
22
than their counterpart ``math.inf`` and ``math.nan`` by a factor of 4 (notwithstanding
33
the initial import of math) and they are also not well typed when using mypy.
4+
This check also catches typos in float calls as a side effect.
45

56
The :ref:`pylint.extensions.code_style` need to be activated for this check to work.
67

0 commit comments

Comments
 (0)