Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SchemaNode constructor doesn't accept typ as a keyword argument #90
Constructing SchemaNodes as follows:
Leads to a "NotImplementedError: SchemaNode construction without a typ argument ...". Ideally, the SchemaNode constructor would have code somewhat like this:
if arg: self.typ = arg _add_node_children(self, arg[1:]) elif 'typ' in kw: self.typ = kw['typ'] else: self.typ = self.schema_type()
That would allow constructing SchemaNodes from dictionaries of arbitrary keyword arguments.