E. Paine added the comment:
Both of the following cases give the correct popup help information:
float.hex(
And:
t = type("test_hex", (), {"hex": lambda nothing: None})
t.hex(
The reason your case fails is because IDLE doesn't evaluate `1.3` to a float
and does indeed use the normal `hex`
New submission from wyz23x2 :
There is a function hex(number, /), and float objects have a method hex().
When something like 1.3.hex( is typed, the yellow box's first line contains
hex(number, /). But the method is actually hex(), no arguments. It confuses
users.
And when 1.3.list( is typed, t