Skip to content

Commit 147e9f8

Browse files
fix some typehints for lists (not sure why wasnt updated when pyray/__init__.pyi was?)
1 parent 0ea3f1b commit 147e9f8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

raylib/__init__.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,10 +1041,10 @@ def GuiLine(bounds: Rectangle,text: str,) -> int:
10411041
def GuiListView(bounds: Rectangle,text: str,scrollIndex: Any,active: Any,) -> int:
10421042
"""List View control, returns selected list item index"""
10431043
...
1044-
def GuiListViewEx(bounds: Rectangle,text: str,count: int,scrollIndex: Any,active: Any,focus: Any,) -> int:
1044+
def GuiListViewEx(bounds: Rectangle,text: list[str],count: int,scrollIndex: Any,active: Any,focus: Any,) -> int:
10451045
"""List View with extended parameters"""
10461046
...
1047-
def GuiLoadIcons(fileName: str,loadIconsName: bool,) -> str:
1047+
def GuiLoadIcons(fileName: str,loadIconsName: bool,) -> list[str]:
10481048
"""Load raygui icons file (.rgi) into internal icons data"""
10491049
...
10501050
def GuiLoadStyle(fileName: str,) -> None:
@@ -1098,7 +1098,7 @@ def GuiSpinner(bounds: Rectangle,text: str,value: Any,minValue: int,maxValue: in
10981098
def GuiStatusBar(bounds: Rectangle,text: str,) -> int:
10991099
"""Status Bar control, shows info text"""
11001100
...
1101-
def GuiTabBar(bounds: Rectangle,text: str,count: int,active: Any,) -> int:
1101+
def GuiTabBar(bounds: Rectangle,text: list[str],count: int,active: Any,) -> int:
11021102
"""Tab Bar control, returns TAB to be closed or -1"""
11031103
...
11041104
def GuiTextBox(bounds: Rectangle,text: str,textSize: int,editMode: bool,) -> int:
@@ -2612,7 +2612,7 @@ def TextInsert(text: str,insert: str,position: int,) -> str:
26122612
def TextIsEqual(text1: str,text2: str,) -> bool:
26132613
"""Check if two text string are equal"""
26142614
...
2615-
def TextJoin(textList: str,count: int,delimiter: str,) -> str:
2615+
def TextJoin(textList: list[str],count: int,delimiter: str,) -> str:
26162616
"""Join text strings with delimiter"""
26172617
...
26182618
def TextLength(text: str,) -> int:
@@ -2621,7 +2621,7 @@ def TextLength(text: str,) -> int:
26212621
def TextReplace(text: str,replace: str,by: str,) -> str:
26222622
"""Replace text string (WARNING: memory must be freed!)"""
26232623
...
2624-
def TextSplit(text: str,delimiter: str,count: Any,) -> str:
2624+
def TextSplit(text: str,delimiter: str,count: Any,) -> list[str]:
26252625
"""Split text into multiple strings"""
26262626
...
26272627
def TextSubtext(text: str,position: int,length: int,) -> str:
@@ -3009,7 +3009,7 @@ def glfwGetCurrentContext() -> Any:
30093009
def glfwGetCursorPos(window: Any,xpos: Any,ypos: Any,) -> None:
30103010
""""""
30113011
...
3012-
def glfwGetError(description: str,) -> int:
3012+
def glfwGetError(description: list[str],) -> int:
30133013
""""""
30143014
...
30153015
def glfwGetFramebufferSize(window: Any,width: Any,height: Any,) -> None:
@@ -3087,7 +3087,7 @@ def glfwGetPrimaryMonitor() -> Any:
30873087
def glfwGetProcAddress(procname: str,) -> Any:
30883088
""""""
30893089
...
3090-
def glfwGetRequiredInstanceExtensions(count: Any,) -> str:
3090+
def glfwGetRequiredInstanceExtensions(count: Any,) -> list[str]:
30913091
""""""
30923092
...
30933093
def glfwGetTime() -> float:
@@ -3201,7 +3201,7 @@ def glfwSetCursorPos(window: Any,xpos: float,ypos: float,) -> None:
32013201
def glfwSetCursorPosCallback(window: Any,callback: Any,) -> Any:
32023202
""""""
32033203
...
3204-
def glfwSetDropCallback(window: Any,callback: str,) -> str:
3204+
def glfwSetDropCallback(window: Any,callback: list[str],) -> list[str]:
32053205
""""""
32063206
...
32073207
def glfwSetErrorCallback(callback: str,) -> str:

0 commit comments

Comments
 (0)