mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-21083 Fixed: Inspection of float.fromhex expecting incorrect arguments
Fix skeleton for float.fromhex
This commit is contained in:
@@ -1072,7 +1072,7 @@ class float(object):
|
||||
return 0.0
|
||||
|
||||
@staticmethod
|
||||
def fromhex(cls, string):
|
||||
def fromhex(string):
|
||||
"""Create a floating-point number from a hexadecimal string.
|
||||
|
||||
:type string: str
|
||||
|
||||
@@ -805,7 +805,7 @@ class float(object):
|
||||
return 0.0
|
||||
|
||||
@staticmethod
|
||||
def fromhex(cls, string):
|
||||
def fromhex(string):
|
||||
"""Create a floating-point number from a hexadecimal string.
|
||||
|
||||
:type string: str
|
||||
|
||||
@@ -217,6 +217,11 @@ public class PyArgumentListInspectionTest extends PyTestCase {
|
||||
doMultiFileTest();
|
||||
}
|
||||
|
||||
// PY-21083
|
||||
public void testFloatFromhex() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doMultiFileTest() {
|
||||
final String folderPath = "inspections/PyArgumentListInspection/" + getTestName(false) + "/";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user