Skip to content

Commit 200f5b8

Browse files
committed
Add math.integer to PyREPL module completer hardcoded list
1 parent 543f56f commit 200f5b8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/_pyrepl/_module_completer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# Standard library submodules that are not detected by pkgutil.iter_modules
2424
# but can be imported, so should be proposed in completion
2525
"collections": ["abc"],
26+
"math": ["integer"],
2627
"os": ["path"],
2728
"xml.parsers.expat": ["errors", "model"],
2829
}

Lib/test/test_pyrepl/test_pyrepl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,7 @@ def test_hardcoded_stdlib_submodules(self):
10951095
cases = (
10961096
("import collections.\t\n", "import collections.abc"),
10971097
("from os import \t\n", "from os import path"),
1098+
("import math.\t\n", "import math.integer"),
10981099
("import xml.parsers.expat.\t\te\t\n\n", "import xml.parsers.expat.errors"),
10991100
("from xml.parsers.expat import \t\tm\t\n\n", "from xml.parsers.expat import model"),
11001101
)

0 commit comments

Comments
 (0)