Skip to content

Commit a91c147

Browse files
SabfoAvasam
andauthored
PyInstaller: Complete types in splash.pyi (#13568)
--------- Co-authored-by: Avasam <samuel.06@hotmail.com>
1 parent 56fa438 commit a91c147

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

stubs/pyinstaller/PyInstaller/building/splash.pyi

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from _typeshed import Incomplete, StrPath
1+
from _typeshed import StrPath
22

33
from PyInstaller.building.datastruct import Target, _TOCTuple
44

@@ -8,20 +8,22 @@ splash_requirements: list[str]
88
# Not to be imported during runtime, but is the type reference for spec files which are executed as python code
99
class Splash(Target):
1010
image_file: str
11-
full_tk: Incomplete
12-
name: Incomplete
13-
script_name: Incomplete
14-
minify_script: Incomplete
15-
max_img_size: Incomplete
16-
text_pos: Incomplete
17-
text_size: Incomplete
18-
text_font: Incomplete
19-
text_color: Incomplete
20-
text_default: Incomplete
21-
always_on_top: Incomplete
22-
uses_tkinter: Incomplete
23-
script: Incomplete
24-
splash_requirements: Incomplete
11+
full_tk: bool
12+
tcl_lib: str
13+
tk_lib: str
14+
name: str
15+
script_name: StrPath
16+
minify_script: bool
17+
max_img_size: tuple[int, int]
18+
text_pos: tuple[int, int] | None
19+
text_size: int
20+
text_font: str
21+
text_color: str
22+
text_default: str
23+
always_on_top: bool
24+
uses_tkinter: bool
25+
script: str
26+
splash_requirements: set[str]
2527
binaries: list[_TOCTuple]
2628
def __init__(
2729
self,
@@ -37,7 +39,7 @@ class Splash(Target):
3739
full_tk: bool = False,
3840
minify_script: bool = True,
3941
name: str = ...,
40-
script_name: str = ...,
42+
script_name: StrPath = ...,
4143
max_img_size: tuple[int, int] | None = (760, 480),
4244
always_on_top: bool = True,
4345
) -> None: ...

0 commit comments

Comments
 (0)