Skip to content

Commit

Permalink
keyword args for SchemaOrgBase.py (fixes type checking bug in pylance…
Browse files Browse the repository at this point in the history
…/VSCode)
  • Loading branch information
crbaker89 committed Feb 17, 2022
1 parent 9b2cd29 commit ad1b069
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/templates/schema_org_base.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ updated_models=set()

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 = {
Expand Down

0 comments on commit ad1b069

Please sign in to comment.