PY-19796 Fixed: Incorrect parameter type hint for ord() function parameter

Update skeleton of ord function to accept bytes in Py3
This commit is contained in:
Semyon Proshev
2016-06-20 19:18:09 +03:00
parent 56d9c82c5b
commit ca3d199fb0
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ def open(name, mode='r', buffering=-1, encoding=None, errors=None, newline=None,
def ord(c):
"""Return the integer ordinal of a one-character string.
:type c: str
:type c: bytes | str
:rtype: int
"""
return 0
@@ -0,0 +1,2 @@
ord(b'A')
ord('A')
@@ -108,4 +108,9 @@ public class Py3TypeCheckerInspectionTest extends PyTestCase {
public void testListGetItemWithSlice() {
doTest();
}
// PY-19796
public void testOrd() {
doTest();
}
}