mypy: ignore missing hints in external
This commit is contained in:
parent
b6a62d123d
commit
7977d89abf
7 changed files with 8 additions and 8 deletions
|
@ -5,7 +5,7 @@ from ast import literal_eval
|
|||
from collections import namedtuple
|
||||
from typing import Any, Dict
|
||||
|
||||
import rrdtool
|
||||
import rrdtool # type: ignore
|
||||
|
||||
from srnemqtt.solar_types import DataName
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import os
|
|||
import sys
|
||||
from time import sleep
|
||||
|
||||
from serial import Serial
|
||||
from serial import Serial # type: ignore
|
||||
|
||||
print(sys.path)
|
||||
sys.path.insert(1, os.path.dirname(os.path.dirname(sys.argv[0])))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from serial import Serial
|
||||
from serial import Serial # type: ignore
|
||||
|
||||
with Serial("/dev/ttyUSB0", baudrate=9600, timeout=2) as x:
|
||||
x.write(b"Hello, World!")
|
||||
|
|
|
@ -5,8 +5,8 @@ import time
|
|||
from decimal import Decimal
|
||||
from typing import cast
|
||||
|
||||
from bluepy.btle import BTLEDisconnectError
|
||||
from serial import SerialException
|
||||
from bluepy.btle import BTLEDisconnectError # type: ignore
|
||||
from serial import SerialException # type: ignore
|
||||
|
||||
from .config import get_config, get_consumers, get_interface
|
||||
from .protocol import parse_battery_state, parse_historical_entry, try_read_parse
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import serial
|
||||
import serial # type: ignore
|
||||
|
||||
from . import BaseInterface
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import queue
|
|||
import time
|
||||
from typing import TYPE_CHECKING, Optional, cast
|
||||
|
||||
from bluepy import btle
|
||||
from bluepy import btle # type: ignore
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from _typeshed import ReadableBuffer, WriteableBuffer
|
||||
|
|
|
@ -5,7 +5,7 @@ import time
|
|||
from io import RawIOBase
|
||||
from typing import Callable, Collection, Optional
|
||||
|
||||
from libscrc import modbus
|
||||
from libscrc import modbus # type: ignore
|
||||
|
||||
from .constants import ACTION_READ, POSSIBLE_MARKER
|
||||
from .lib.feasycom_ble import BTLEUart
|
||||
|
|
Loading…
Reference in a new issue