Skip to content

Commit

Permalink
Avoid shadowing __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Feb 18, 2023
1 parent 7d62845 commit 2ea3009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@
# TODO: remove in 2024
def __getattr__(name):
if name != "sensors":
from .sensors import __all__
from .sensors import __all__ as sensors_all

if name in __all__:
if name in sensors_all:
import warnings
from . import sensors

Expand Down

0 comments on commit 2ea3009

Please sign in to comment.