Skip to content

Commit 4ec6e4b

Browse files
committed
Remove unnecessary decorators
1 parent 78d082d commit 4ec6e4b

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
@@ -277,7 +277,6 @@ def SDL_NOT_IMPLEMENTED(name: str) -> abc.Callable[..., None]:
277277
SDL_LOGGER.Log(SDL_LOGGER.Error, f"Invoked an unimplemented function: '{name}'.")
278278

279279
class SDL_FUNC:
280-
@classmethod
281280
def __class_getitem__(cls, key: tuple[str, type, list[type], str]) -> typing.Any:
282281
"""Create a new ctypes function definition."""
283282

@@ -324,7 +323,6 @@ def __inner__(*args: typing.Any, **kwargs: typing.Any) -> typing.Any:
324323
return func
325324

326325
class SDL_POINTER:
327-
@classmethod
328326
def __class_getitem__(cls, key: type) -> type:
329327
"""Create a ctypes pointer type from a ctypes type."""
330328

@@ -335,7 +333,6 @@ def __class_getitem__(cls, key: type) -> type:
335333
return ctypes.POINTER(key)
336334

337335
class SDL_CAST:
338-
@classmethod
339336
def __class_getitem__(cls, key: tuple[typing.Any, type]) -> typing.Any:
340337
"""Cast a ctypes pointer to an another type."""
341338

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

350347
class SDL_TYPE:
351-
@classmethod
352348
def __class_getitem__(cls, key: tuple[str, type]) -> type:
353349
"""Create a new type from a ctypes type."""
354350

@@ -368,7 +364,6 @@ def __class_getitem__(cls, key: tuple[str, type]) -> type:
368364
return type(key[0], (ctypes._SimpleCData, ), {"_type_": key[1]._type_})
369365

370366
class SDL_FUNC_TYPE:
371-
@classmethod
372367
def __class_getitem__(cls, key: tuple[str, type, list[type]]) -> type:
373368
"""Create a new ctypes function type."""
374369

0 commit comments

Comments
 (0)