mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 13:00:19 +00:00
Put typing import into try block
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user