mypy: ignore missing hints in external

This commit is contained in:
Odd Stråbø 2023-12-08 13:45:05 +01:00
parent b6a62d123d
commit 7977d89abf
7 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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])))

View file

@ -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!")