Skip to content

Commit 204e4f6

Browse files
authored
minor typing fixes (#2110)
1 parent 8fef825 commit 204e4f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arcade/gl/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def activate(cls, ctx: "Context"):
407407
"""
408408
cls.active = ctx
409409

410-
def enable(self, *flags):
410+
def enable(self, *flags: int):
411411
"""
412412
Enables one or more context flags::
413413
@@ -421,7 +421,7 @@ def enable(self, *flags):
421421
for flag in flags:
422422
gl.glEnable(flag)
423423

424-
def enable_only(self, *args):
424+
def enable_only(self, *args: int):
425425
"""
426426
Enable only some flags. This will disable all other flags.
427427
This is a simple way to ensure that context flag states

arcade/gl/vertex_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def delete_glo(ctx: "Context", glo: gl.GLuint):
138138
ctx.stats.decr("vertex_array")
139139

140140
def _build(
141-
self, program: Program, content: Sequence[BufferDescription], index_buffer
141+
self, program: Program, content: Sequence[BufferDescription], index_buffer: Optional[Buffer]
142142
):
143143
"""Build a vertex array compatible with the program passed in"""
144144
gl.glGenVertexArrays(1, byref(self.glo))

0 commit comments

Comments
 (0)