Skip to content

Commit 272cf0f

Browse files
committed
Other misc typing fixes
1 parent d20f900 commit 272cf0f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

buildconfig/stubs/pygame/font.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def match_font(
2020
italic: Hashable = False,
2121
) -> str: ...
2222
def SysFont(
23-
name: Union[str, bytes, Iterable[Union[str, bytes]]],
23+
name: Union[str, bytes, Iterable[Union[str, bytes]], None],
2424
size: int,
2525
bold: Hashable = False,
2626
italic: Hashable = False,

buildconfig/stubs/pygame/freetype.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_cache_size() -> int: ...
1616
def get_default_resolution() -> int: ...
1717
def set_default_resolution(resolution: int) -> None: ...
1818
def SysFont(
19-
name: Union[str, bytes, Iterable[Union[str, bytes]]],
19+
name: Union[str, bytes, Iterable[Union[str, bytes]], None],
2020
size: int,
2121
bold: int = False,
2222
italic: int = False,

buildconfig/stubs/pygame/math.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class _GenericVector(Collection[float]):
114114
@overload
115115
def clamp_magnitude_ip(self, min_length: float, max_length: float) -> None: ...
116116
def project(self: _TVec, other: Union[Sequence[float], _TVec]) -> _TVec: ...
117-
def __round__(self: _TVec, ndigits: Optional[int]) -> _TVec: ...
117+
def __round__(self: _TVec, ndigits: Optional[int] = None) -> _TVec: ...
118118

119119
# VectorElementwiseProxy is a generic, it can be an elementwiseproxy object for
120120
# Vector2, Vector3 and vector subclass objects

0 commit comments

Comments
 (0)