Skip to content

Commit 2ea3009

Browse files
committed
Avoid shadowing __all__
1 parent 7d62845 commit 2ea3009

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ctre/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@
201201
# TODO: remove in 2024
202202
def __getattr__(name):
203203
if name != "sensors":
204-
from .sensors import __all__
204+
from .sensors import __all__ as sensors_all
205205

206-
if name in __all__:
206+
if name in sensors_all:
207207
import warnings
208208
from . import sensors
209209

0 commit comments

Comments
 (0)