Skip to content

Commit bc0f1b9

Browse files
committed
Refactor imports to use relative package imports.
1 parent aa5bb18 commit bc0f1b9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sdl3/SDL_assert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from . import os, inspect, ctypes, typing, abc, re, SDL_BINARY, \
2-
SDL_FUNC_TYPE, SDL_POINTER, SDL_FUNC, SDL_TYPE, SDL_ENUM
1+
from . import os, inspect, ctypes, typing, abc, re, \
2+
SDL_BINARY, SDL_FUNC_TYPE, SDL_POINTER, SDL_FUNC, SDL_TYPE, SDL_ENUM
33

44
SDL_ASSERT_LEVEL: int = 2
55
SDL_NULL_WHILE_LOOP_CONDITION: int = 0

sdl3/SDL_asyncio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from . import ctypes, typing, abc, SDL_BINARY, \
2-
SDL_POINTER, SDL_ENUM, SDL_FUNC, SDL_TYPE
1+
from . import ctypes, typing, abc, \
2+
SDL_BINARY, SDL_POINTER, SDL_ENUM, SDL_FUNC, SDL_TYPE
33

44
class SDL_AsyncIO(ctypes.c_void_p):
55
...

sdl3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def SDL_GENERATE_DOCS(modules: list[str] = SDL_MODULES, raw: types.ModuleType |
568568
result = "" if rst else "\"\"\"\n# This file is auto-generated, do not modify it.\n__meta__ = "
569569
if not rst: result += f"{{\"target\": \"v{__version__}\", \"system\": \"{SDL_SYSTEM}\"}}\n\"\"\"\n\n"
570570
result += f"from {'sdl3' if rst else ''}.SDL import * # type: ignore\n\n"
571-
result += f"from {'sdl3' if rst else ''}.__init__ import {'' if rst else 'raw, '}ctypes, typing, {'SDL_POINTER' if rst else ''}"
571+
result += f"from {'sdl3' if rst else ''}. import {'' if rst else 'raw, '}ctypes, typing, {'SDL_POINTER' if rst else ''}"
572572
result += "\n" if rst else f"\\\n{' ' * 4}SDL_POINTER, SDL_CLONE_METACLASS as SDL_CloneMeta\n\n"
573573
types, definitions = set(), ""
574574

0 commit comments

Comments
 (0)