Class f.a.MetaTypedInterface(InterfaceClass):

Part of formless.annotate View Source View In Hierarchy

The metaclass for TypedInterface. When TypedInterface is subclassed, this metaclass' __new__ method is invoked. The Typed Binding introspection described in the Binding docstring occurs, and when it is all done, there will be three attributes on the TypedInterface class:

These lists are sorted in the order that the methods and properties appear in the TypedInterface definition.

For example:
>>> class Foo(TypedInterface):
...     bar = String()
...     baz = Integer()
...     
...     def frotz(): pass
...     frotz = autocallable(frotz)
...     
...     xyzzy = Float()
...     
...     def blam(): pass
...     blam = autocallable(blam)
Once the metaclass __new__ is done, the Foo class instance will have three properties, __methods__, __properties__, and __spec__,
Line # Kind Name Docs
729 Method __new__ Undocumented
def __new__(cls, name, bases, dct): (source)
Undocumented
API Documentation for Nevow, generated by pydoctor.