sublinput   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A new_input() 0 4 2
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