Skip to content

Commit b1f00ac

Browse files
committed
Fix some freetype typing
1 parent ca4ad56 commit b1f00ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

buildconfig/stubs/pygame/freetype.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_init() -> bool: ...
1717
def was_init() -> bool: ...
1818
def get_cache_size() -> int: ...
1919
def get_default_resolution() -> int: ...
20-
def set_default_resolution(resolution: int, /) -> None: ...
20+
def set_default_resolution(resolution: int = 0, /) -> None: ...
2121
def SysFont(
2222
name: Union[str, bytes, Iterable[Union[str, bytes]], None],
2323
size: int,
@@ -143,7 +143,7 @@ class Font:
143143
) -> None: ...
144144
def get_rect(
145145
self,
146-
text: str,
146+
text: Optional[str],
147147
style: int = STYLE_DEFAULT,
148148
rotation: int = 0,
149149
size: float = 0,
@@ -158,7 +158,7 @@ class Font:
158158
def get_sizes(self) -> list[tuple[int, int, int, float, float]]: ...
159159
def render(
160160
self,
161-
text: str,
161+
text: Optional[str],
162162
fgcolor: Optional[ColorLike] = None,
163163
bgcolor: Optional[ColorLike] = None,
164164
style: int = STYLE_DEFAULT,
@@ -169,7 +169,7 @@ class Font:
169169
self,
170170
surf: Surface,
171171
dest: RectLike,
172-
text: str,
172+
text: Optional[str],
173173
fgcolor: Optional[ColorLike] = None,
174174
bgcolor: Optional[ColorLike] = None,
175175
style: int = STYLE_DEFAULT,
@@ -178,7 +178,7 @@ class Font:
178178
) -> Rect: ...
179179
def render_raw(
180180
self,
181-
text: str,
181+
text: Optional[str],
182182
style: int = STYLE_DEFAULT,
183183
rotation: int = 0,
184184
size: float = 0,
@@ -187,7 +187,7 @@ class Font:
187187
def render_raw_to(
188188
self,
189189
array: Any,
190-
text: str,
190+
text: Optional[str],
191191
dest: Optional[RectLike] = None,
192192
style: int = STYLE_DEFAULT,
193193
rotation: int = 0,

0 commit comments

Comments
 (0)