mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-02-16 15:59:59 +00:00
add typing hints to make it easier for 3rd party developers to use the library (#90)
* add typing hints to make it easier for 3rd party developers to use the library * remove unused devicetype enum to support python3.3 * add python 3.3 to travis and tox, install typing module in setup.py
This commit is contained in:
@@ -3,6 +3,7 @@ from voluptuous import Schema, Invalid, All, Any, Range
|
||||
from functools import partial
|
||||
import datetime
|
||||
import re
|
||||
from typing import Dict # noqa: F401
|
||||
|
||||
from .. import SmartPlug, SmartDeviceException
|
||||
from .fakes import (FakeTransportProtocol,
|
||||
@@ -35,7 +36,7 @@ def check_mode(x):
|
||||
|
||||
|
||||
class TestSmartPlugHS110(TestCase):
|
||||
SYSINFO = sysinfo_hs110
|
||||
SYSINFO = sysinfo_hs110 # type: Dict
|
||||
# these schemas should go to the mainlib as
|
||||
# they can be useful when adding support for new features/devices
|
||||
# as well as to check that faked devices are operating properly.
|
||||
|
||||
Reference in New Issue
Block a user