Skip to content

Commit 2a019da

Browse files
committed
Remove unnecessary decorators
1 parent 6afd919 commit 2a019da

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

sdl3/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ def SDL_NOT_IMPLEMENTED(name: str) -> abc.Callable[..., None]:
280280
SDL_LOGGER.Log(SDL_LOGGER.Error, f"Invoked an unimplemented function: '{name}'.")
281281

282282
class SDL_FUNC:
283-
@classmethod
284283
def __class_getitem__(cls, key: tuple[str, type, list[type], str]) -> typing.Any:
285284
"""Create a new ctypes function definition."""
286285

@@ -327,7 +326,6 @@ def __inner__(*args: typing.Any, **kwargs: typing.Any) -> typing.Any:
327326
return func
328327

329328
class SDL_POINTER:
330-
@classmethod
331329
def __class_getitem__(cls, key: type) -> type:
332330
"""Create a ctypes pointer type from a ctypes type."""
333331

@@ -338,7 +336,6 @@ def __class_getitem__(cls, key: type) -> type:
338336
return ctypes.POINTER(key)
339337

340338
class SDL_CAST:
341-
@classmethod
342339
def __class_getitem__(cls, key: tuple[typing.Any, type]) -> typing.Any:
343340
"""Cast a ctypes pointer to an another type."""
344341

@@ -351,7 +348,6 @@ def __class_getitem__(cls, key: tuple[typing.Any, type]) -> typing.Any:
351348
return ctypes.cast(key[0], key[1])
352349

353350
class SDL_TYPE:
354-
@classmethod
355351
def __class_getitem__(cls, key: tuple[str, type]) -> type:
356352
"""Create a new type from a ctypes type."""
357353

@@ -371,7 +367,6 @@ def __class_getitem__(cls, key: tuple[str, type]) -> type:
371367
return type(key[0], (ctypes._SimpleCData, ), {"_type_": key[1]._type_})
372368

373369
class SDL_FUNC_TYPE:
374-
@classmethod
375370
def __class_getitem__(cls, key: tuple[str, type, list[type]]) -> type:
376371
"""Create a new ctypes function type."""
377372

0 commit comments

Comments
 (0)