@@ -17,7 +17,7 @@ def get_init() -> bool: ...
17
17
def was_init () -> bool : ...
18
18
def get_cache_size () -> int : ...
19
19
def get_default_resolution () -> int : ...
20
- def set_default_resolution (resolution : int , / ) -> None : ...
20
+ def set_default_resolution (resolution : int = 0 , / ) -> None : ...
21
21
def SysFont (
22
22
name : Union [str , bytes , Iterable [Union [str , bytes ]], None ],
23
23
size : int ,
@@ -143,7 +143,7 @@ class Font:
143
143
) -> None : ...
144
144
def get_rect (
145
145
self ,
146
- text : str ,
146
+ text : Optional [ str ] ,
147
147
style : int = STYLE_DEFAULT ,
148
148
rotation : int = 0 ,
149
149
size : float = 0 ,
@@ -158,7 +158,7 @@ class Font:
158
158
def get_sizes (self ) -> list [tuple [int , int , int , float , float ]]: ...
159
159
def render (
160
160
self ,
161
- text : str ,
161
+ text : Optional [ str ] ,
162
162
fgcolor : Optional [ColorLike ] = None ,
163
163
bgcolor : Optional [ColorLike ] = None ,
164
164
style : int = STYLE_DEFAULT ,
@@ -169,7 +169,7 @@ class Font:
169
169
self ,
170
170
surf : Surface ,
171
171
dest : RectLike ,
172
- text : str ,
172
+ text : Optional [ str ] ,
173
173
fgcolor : Optional [ColorLike ] = None ,
174
174
bgcolor : Optional [ColorLike ] = None ,
175
175
style : int = STYLE_DEFAULT ,
@@ -178,7 +178,7 @@ class Font:
178
178
) -> Rect : ...
179
179
def render_raw (
180
180
self ,
181
- text : str ,
181
+ text : Optional [ str ] ,
182
182
style : int = STYLE_DEFAULT ,
183
183
rotation : int = 0 ,
184
184
size : float = 0 ,
@@ -187,7 +187,7 @@ class Font:
187
187
def render_raw_to (
188
188
self ,
189
189
array : Any ,
190
- text : str ,
190
+ text : Optional [ str ] ,
191
191
dest : Optional [RectLike ] = None ,
192
192
style : int = STYLE_DEFAULT ,
193
193
rotation : int = 0 ,
0 commit comments