mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NumpyResolveRater will not change member rate if NDARRAY type is not found
This commit is contained in:
@@ -481,6 +481,17 @@ public class Py3TypeTest extends PyTestCase {
|
||||
"expr = sum([1, 2, 3])");
|
||||
}
|
||||
|
||||
public void testDecimalDividedByInt() {
|
||||
doTest("Union[int, Decimal]",
|
||||
"class Decimal(object):\n" +
|
||||
" def __div__(self, other):\n" +
|
||||
" \"\"\"\n" +
|
||||
" :rtype: Decimal" +
|
||||
" \"\"\"\n" +
|
||||
" pass\n" +
|
||||
"expr = Decimal() / 5");
|
||||
}
|
||||
|
||||
private void doTest(final String expectedType, final String text) {
|
||||
myFixture.configureByText(PythonFileType.INSTANCE, text);
|
||||
final PyExpression expr = myFixture.findElementByText("expr", PyExpression.class);
|
||||
|
||||
Reference in New Issue
Block a user