meta: fix type annotation of schema input
The schema input of Schema.__init__ is a python-native representation of a JSON object, so it can be any kind of dictionary. Furthermore, it is optional. Fix the type to be Optional[Dict]. Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
This commit is contained in:
parent
b41e591b02
commit
4a40b732ea
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ class Schema:
|
|||
schema data.
|
||||
"""
|
||||
|
||||
def __init__(self, schema: str, name: Optional[str] = None):
|
||||
def __init__(self, schema: Optional[Dict], name: Optional[str] = None):
|
||||
self.data = schema
|
||||
self.name = name
|
||||
self._validator: Optional[jsonschema.Draft4Validator] = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue