mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Put typing import into try block
This commit is contained in:
parent
3f7b637a15
commit
74448df9f1
@ -13,7 +13,11 @@
|
||||
# limitations under the License.
|
||||
|
||||
import textwrap
|
||||
from typing import Optional
|
||||
|
||||
try:
|
||||
from typing import Optional
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import serial.tools.miniterm as miniterm
|
||||
|
||||
|
@ -14,7 +14,11 @@
|
||||
|
||||
|
||||
import sys
|
||||
from typing import Optional
|
||||
|
||||
try:
|
||||
from typing import Optional
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
# ANSI terminal codes (if changed, regular expressions in LineMatcher need to be udpated)
|
||||
ANSI_RED = '\033[1;31m'
|
||||
|
@ -13,7 +13,11 @@
|
||||
# limitations under the License.
|
||||
|
||||
import threading
|
||||
from typing import Optional
|
||||
|
||||
try:
|
||||
from typing import Optional
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
class StoppableThread(object):
|
||||
|
Loading…
x
Reference in New Issue
Block a user