Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 786c0ea

Browse files
projectgusdpgeorge
authored andcommitted
all: Add missing const imports
Found by Ruff checking F821. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 1f3002b commit 786c0ea

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

‎micropython/aiorepl/aiorepl.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# MIT license; Copyright (c) 2022 Jim Mussared
22

33
import micropython
4+
from micropython import const
45
import re
56
import sys
67
import time

‎micropython/drivers/imu/lsm9ds1/lsm9ds1.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
time.sleep_ms(100)
4545
"""
4646
import array
47+
from micropython import const
4748

4849

4950
_WHO_AM_I = const(0xF)

‎micropython/drivers/sensor/lps22h/lps22h.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
time.sleep_ms(10)
3939
"""
4040
import machine
41+
from micropython import const
4142

4243
_LPS22_CTRL_REG1 = const(0x10)
4344
_LPS22_CTRL_REG2 = const(0x11)

‎micropython/mip/mip/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# MicroPython package installer
22
# MIT license; Copyright (c) 2022 Jim Mussared
33

4+
from micropython import const
45
import requests
56
import sys
67

‎micropython/net/webrepl/webrepl.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This module should be imported from REPL, not run from command line.
22
import binascii
33
import hashlib
4+
from micropython import const
45
import network
56
import os
67
import socket

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /