From 9b2cd29835aab397ab8247aeb3011d622bc6020b Mon Sep 17 00:00:00 2001 From: "reinoudbaker@hotmail.com" Date: Thu, 17 Feb 2022 15:25:49 +0100 Subject: [PATCH] keyword args for SchemaOrgBase.py (fixes type checking bug in pylance/VSCode) --- pydantic_schemaorg/SchemaOrgBase.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pydantic_schemaorg/SchemaOrgBase.py b/pydantic_schemaorg/SchemaOrgBase.py index c7333cf2..d97b592d 100644 --- a/pydantic_schemaorg/SchemaOrgBase.py +++ b/pydantic_schemaorg/SchemaOrgBase.py @@ -12,10 +12,10 @@ class SchemaOrgBase(BaseModel): #JSON-LD fields - reverse_ : Optional[Any] = Field(None,alias='@reverse') - id_ : Optional[Any] = Field(None,alias='@id') - context_ : Optional[Any] = Field(None,alias='@context') - graph_ : Optional[Any] = Field(None,alias='@graph') + reverse_ : Optional[Any] = Field(default=None,alias='@reverse') + id_ : Optional[Any] = Field(default=None,alias='@id') + context_ : Optional[Any] = Field(default=None,alias='@context') + graph_ : Optional[Any] = Field(default=None,alias='@graph') def dict(self, *args, **kwargs): defaults = {