Skip to content

Commit 0f44412

Browse files
committed
Rename top-level files to reduce unintended import issues
1 parent d294d72 commit 0f44412

16 files changed

+22
-22
lines changed

sbot/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from os import environ as _environ
22

3-
from .arduinos import AnalogPin, GPIOPinMode
4-
from .leds import Colour
5-
from .motors import MotorPower
6-
from .power import PowerOutputPosition
7-
from .utils import Note
3+
from ._arduinos import AnalogPin, GPIOPinMode
4+
from ._leds import Colour
5+
from ._motors import MotorPower
6+
from ._power import PowerOutputPosition
7+
from ._utils import Note
88

99
if 'SBOT_PYTEST' not in _environ:
1010
from .robot import arduino, comp, leds, motors, power, servos, utils, vision
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sbot/utils.py renamed to sbot/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import time
66
from enum import IntEnum
77

8-
from .comp import Comp
8+
from ._comp import Comp
99
from .game_specific import GAME_LENGTH
1010
from .internal.board_manager import IN_SIMULATOR, BoardManager, DiscoveryTemplate
1111
from .internal.overrides import get_overrides
File renamed without changes.

sbot/internal/start_led.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
import atexit
55

6-
from sbot.utils import IN_SIMULATOR
6+
from sbot._utils import IN_SIMULATOR
77

8-
from ..leds import RobotLEDs
8+
from .._leds import RobotLEDs
99

1010
try:
1111
import RPi.GPIO as GPIO # isort: ignore

0 commit comments

Comments
 (0)