From 4a40b732ea35edf3485731a25e8847763266e089 Mon Sep 17 00:00:00 2001 From: David Rheinsberg Date: Mon, 25 Jul 2022 12:20:55 +0200 Subject: [PATCH] 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 --- osbuild/meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osbuild/meta.py b/osbuild/meta.py index bb65f86b..c3f73e29 100644 --- a/osbuild/meta.py +++ b/osbuild/meta.py @@ -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