@@ -280,7 +280,6 @@ def SDL_NOT_IMPLEMENTED(name: str) -> abc.Callable[..., None]:
280
280
SDL_LOGGER .Log (SDL_LOGGER .Error , f"Invoked an unimplemented function: '{ name } '." )
281
281
282
282
class SDL_FUNC :
283
- @classmethod
284
283
def __class_getitem__ (cls , key : tuple [str , type , list [type ], str ]) -> typing .Any :
285
284
"""Create a new ctypes function definition."""
286
285
@@ -327,7 +326,6 @@ def __inner__(*args: typing.Any, **kwargs: typing.Any) -> typing.Any:
327
326
return func
328
327
329
328
class SDL_POINTER :
330
- @classmethod
331
329
def __class_getitem__ (cls , key : type ) -> type :
332
330
"""Create a ctypes pointer type from a ctypes type."""
333
331
@@ -338,7 +336,6 @@ def __class_getitem__(cls, key: type) -> type:
338
336
return ctypes .POINTER (key )
339
337
340
338
class SDL_CAST :
341
- @classmethod
342
339
def __class_getitem__ (cls , key : tuple [typing .Any , type ]) -> typing .Any :
343
340
"""Cast a ctypes pointer to an another type."""
344
341
@@ -351,7 +348,6 @@ def __class_getitem__(cls, key: tuple[typing.Any, type]) -> typing.Any:
351
348
return ctypes .cast (key [0 ], key [1 ])
352
349
353
350
class SDL_TYPE :
354
- @classmethod
355
351
def __class_getitem__ (cls , key : tuple [str , type ]) -> type :
356
352
"""Create a new type from a ctypes type."""
357
353
@@ -371,7 +367,6 @@ def __class_getitem__(cls, key: tuple[str, type]) -> type:
371
367
return type (key [0 ], (ctypes ._SimpleCData , ), {"_type_" : key [1 ]._type_ })
372
368
373
369
class SDL_FUNC_TYPE :
374
- @classmethod
375
370
def __class_getitem__ (cls , key : tuple [str , type , list [type ]]) -> type :
376
371
"""Create a new ctypes function type."""
377
372
0 commit comments