Prototype object based on the schema, in Python code with comments. Args: from_cache: callable(name, seen), Callable that retrieves an object prototype for a schema with the given name. Seen is a list of schema names already seen as we recursively descend
(self, from_cache)
| 302 | return self.string |
| 303 | |
| 304 | def to_str(self, from_cache): |
| 305 | """Prototype object based on the schema, in Python code with comments. |
| 306 | |
| 307 | Args: |
| 308 | from_cache: callable(name, seen), Callable that retrieves an object |
| 309 | prototype for a schema with the given name. Seen is a list of schema |
| 310 | names already seen as we recursively descend the schema definition. |
| 311 | |
| 312 | Returns: |
| 313 | Prototype object based on the schema, in Python code with comments. |
| 314 | The lines of the code will all be properly indented. |
| 315 | """ |
| 316 | self.from_cache = from_cache |
| 317 | return self._to_str_impl(self.schema) |
no test coverage detected