sublinput.new_input()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 2
nop 1
1
"""An input pygame alternative for sublime text users."""
2
3
from sublinput.ui import InputBoxScreen
4
import builtins
0 ignored issues
show
introduced by
standard import "import builtins" should be placed before "from sublinput.ui import InputBoxScreen"
Loading history...
5
6
7
def new_input(__prompt: str = '') -> str:
8
    """A function that creates a new input box screen and return it's value."""
9
    with InputBoxScreen() as input_box:
10
        return input_box(__prompt)
11
12
13
builtins.input = new_input
14