namedtuple subclasses should set __slots__=()

This commit is contained in:
Laura Klünder 2017-11-26 18:35:00 +01:00
parent fcae62eb86
commit 587b08a1e4
2 changed files with 3 additions and 0 deletions

View file

@ -21,6 +21,8 @@ class RenderContext(namedtuple('RenderContext', ('width', 'height', 'ctx', 'prog
"""
A OpenGL Render Context with program and framebuffer. Can only be used by thread that created it.
"""
__slots__ = ()
@classmethod
def create(cls, width, height):
ctx = ModernGL.create_standalone_context()