Skip to content

Commit 42a046e

Browse files
author
Pedro Viana Schroeder
committed
Use imports at the beginning of the file in adafrit_irremote.py
1 parent 3e28b40 commit 42a046e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

adafruit_irremote.py

+11-8
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,19 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5+
# pylint: disable=missing-module-docstring
56
from __future__ import annotations
67

8+
import array
9+
from collections import namedtuple
10+
import time
11+
12+
try:
13+
from typing import List, NamedTuple, Optional, Tuple
14+
from pulseio import PulseOut
15+
except ImportError:
16+
pass
17+
718
"""
819
`adafruit_irremote`
920
====================================================
@@ -52,14 +63,6 @@
5263
https://github.com/adafruit/circuitpython/releases
5364
5465
"""
55-
import array
56-
from collections import namedtuple
57-
import time
58-
59-
try:
60-
from typing import List, NamedTuple, Optional, Tuple
61-
except ImportError:
62-
pass
6366

6467
__version__ = "0.0.0+auto.0"
6568
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_IRRemote.git"

0 commit comments

Comments
 (0)