Skip to content

Commit 7edf469

Browse files
committed
Remove unnecessary decorators
1 parent 78d082d commit 7edf469

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sdl3/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ def __inner__(*args: typing.Any, **kwargs: typing.Any) -> typing.Any:
324324
return func
325325

326326
class SDL_POINTER:
327-
@classmethod
328327
def __class_getitem__(cls, key: type) -> type:
329328
"""Create a ctypes pointer type from a ctypes type."""
330329

@@ -335,7 +334,6 @@ def __class_getitem__(cls, key: type) -> type:
335334
return ctypes.POINTER(key)
336335

337336
class SDL_CAST:
338-
@classmethod
339337
def __class_getitem__(cls, key: tuple[typing.Any, type]) -> typing.Any:
340338
"""Cast a ctypes pointer to an another type."""
341339

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

350348
class SDL_TYPE:
351-
@classmethod
352349
def __class_getitem__(cls, key: tuple[str, type]) -> type:
353350
"""Create a new type from a ctypes type."""
354351

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

370367
class SDL_FUNC_TYPE:
371-
@classmethod
372368
def __class_getitem__(cls, key: tuple[str, type, list[type]]) -> type:
373369
"""Create a new ctypes function type."""
374370

0 commit comments

Comments
 (0)