alecthomas/voluptuous — pull request #14 by aaronharnly (2013-01-02 16:47:48+00:00)
Title: Classes with custom metaclasses can be used in schemas

Currently, one can use a custom class as a schema, for example:

```python
class Thing(object):
pass

schema = Schema(thing)
schema(Thing())
```

However, this fails if the custom class has a custom metaclass, due to a hard check for type(schema) == type. This is a small fix, with accompanying tests, to allow classes with custom metaclasses to be used in schemas.