meta: truth value of Schema includes schema check

The truthiness of the `Schema` object itself now contains the
schema validation as well, i.e. schema is only valid if schema
information is present and said information passes validation.
This commit is contained in:
Christian Kellner 2020-04-29 16:22:32 +02:00
parent 26ca79ec25
commit 1fa3b88ab1

View file

@ -257,7 +257,7 @@ class Schema:
return res
def __bool__(self):
return self.data
return self.check().valid
class StageInfo: