Skip to content

Commit 33fc18b

Browse files
authored
Merge pull request #1 from oddbookworm/yunline_typestub_fix
Fix a typestub inconsistency causing the 22.04 ubuntu workflow to fail
2 parents f62bc2f + 38b5532 commit 33fc18b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/build-ubuntu-sdist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: python3 -m pygame.tests -v --exclude opengl,music,timing --time_out 300
7373

7474
- name: Test typestubs
75-
if: matrix.os == 'ubuntu-22.04' # run stubest only once
75+
if: matrix.os == 'ubuntu-22.04' # run stubtest only once
7676
run: |
7777
cd buildconfig/stubs
7878
pip3 install mypy

buildconfig/stubs/pygame/midi.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Output:
3636
self,
3737
device_id: int,
3838
latency: int = 0,
39-
buffer_size: int = 4096,
39+
buffer_size: int = 256,
4040
) -> None: ...
4141
def abort(self) -> None: ...
4242
def close(self) -> None: ...

src_py/freetype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
]
4545

4646

47-
def SysFont(name, size, bold=0, italic=0, constructor=None):
47+
def SysFont(name, size, bold=False, italic=False, constructor=None):
4848
"""pygame.ftfont.SysFont(name, size, bold=False, italic=False, constructor=None) -> Font
4949
Create a pygame Font from system font resources.
5050

src_py/sysfont.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ def get_fonts():
474474
return list(Sysfonts)
475475

476476

477-
def match_font(name, bold=0, italic=0):
478-
"""pygame.font.match_font(name, bold=0, italic=0) -> name
477+
def match_font(name, bold=False, italic=False):
478+
"""pygame.font.match_font(name, bold=False, italic=False) -> name
479479
find the filename for the named system font
480480
481481
This performs the same font search as the SysFont()

0 commit comments

Comments
 (0)