1 """Module providing runtime utility objects to support the Micro/CircuitPython api"""
5 Object supporting CircuitPython-style of static symbols
6 as seen with Direction.OUTPUT, Pull.UP
11 Assumes instance will be found as attribute of own class.
12 Returns dot-subscripted path to instance
13 (assuming absolute import of containing package)
17 if getattr(cls, key) is self:
18 return "{}.{}.{}".format(cls.__module__, cls.__qualname__, key)
24 Inspects attributes of the class for instances of the class
25 and returns as key,value pairs mirroring dict#iteritems
28 val = getattr(cls, key)
34 def __init__(self, id):
35 """ id type is likely platform-specific"""