I'm using zope.interface
module to declare an interface with some methods and attributes. Also, cannot I somehow declare not only the attribute names, but also their types?
from zope.interface import Interface, Attribute, implementer, verify
class IVehicle(Interface):
"""Any moving thing"""
speed = Attribute("""Movement speed""") #CANNOT I DECLARE ITS TYPE HERE?
def move():
"""Make a single step"""
pass