Skip to content

Commit 1b2c67c

Browse files
committed
chore: tighten mypy/ruff setup and fix lint/type compatibility issues
1 parent d9447aa commit 1b2c67c

155 files changed

Lines changed: 1407 additions & 1206 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/alternate-screen/alternate-screen.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from pyinkcli import Box, Text, render, useApp, useInput, useWindowSize
88
from pyinkcli.hooks import useEffect, useRef, useState
99

10-
1110
HEAD = "🦄"
1211
BODY = "✨"
1312
FOOD = "🌈"

examples/alternate-screen/index.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
import runpy
44
from pathlib import Path
55

6-
76
if __name__ == "__main__":
87
runpy.run_path(str(Path(__file__).with_name("alternate-screen.py")), run_name="__main__")

examples/aria/aria.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""aria example for pyinkcli."""
22

3-
from pyinkcli import render, Box, Text, useInput
3+
from pyinkcli import Box, Text, render, useInput
44
from pyinkcli.hooks import useState
55

66

examples/aria/index.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
import runpy
44
from pathlib import Path
55

6-
76
if __name__ == "__main__":
87
runpy.run_path(str(Path(__file__).with_name("aria.py")), run_name="__main__")

examples/borders/borders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Demonstrates different border styles available in pyinkcli.
55
"""
66

7-
from pyinkcli import render, Box, Text, useApp, useInput
7+
from pyinkcli import Box, Text, render, useApp, useInput
88

99

1010
def borders_example():

examples/borders/index.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
import runpy
44
from pathlib import Path
55

6-
76
if __name__ == "__main__":
87
runpy.run_path(str(Path(__file__).with_name("borders.py")), run_name="__main__")

examples/box-backgrounds/box-backgrounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""box-backgrounds example for pyinkcli."""
22

3-
from pyinkcli import render, Box, Text, useApp, useInput
3+
from pyinkcli import Box, Text, render, useApp, useInput
44

55

66
def box_backgrounds_example():

examples/box-backgrounds/index.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
import runpy
44
from pathlib import Path
55

6-
76
if __name__ == "__main__":
87
runpy.run_path(str(Path(__file__).with_name("box-backgrounds.py")), run_name="__main__")

examples/chat/chat.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
Port of js_source/ink/examples/chat/chat.tsx
66
"""
77

8-
from pyinkcli import render, Box, Text, useInput
9-
8+
from pyinkcli import Box, Text, render, useInput
109

1110
message_id = 0
1211

examples/chat/index.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
import runpy
44
from pathlib import Path
55

6-
76
if __name__ == "__main__":
87
runpy.run_path(str(Path(__file__).with_name("chat.py")), run_name="__main__")

0 commit comments

Comments
 (0)