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 ad1b069 commit eb4df2d
Show file tree
Hide file tree
Showing 1,333 changed files with 1,667 additions and 2,670 deletions.
3 changes: 1 addition & 2 deletions pydantic_schemaorg/AMRadioChannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class AMRadioChannel(RadioChannel):
See: https://schema.org/AMRadioChannel
Model depth: 5
"""
type_: str = Field("AMRadioChannel", alias='@type')
type_: str = Field(default="AMRadioChannel", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/APIReference.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class APIReference(TechArticle):
See: https://schema.org/APIReference
Model depth: 5
"""
type_: str = Field("APIReference", alias='@type')
type_: str = Field(default="APIReference", alias='@type')
assemblyVersion: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field(
default=None,
description="Associated product/technology version. e.g., .NET Framework 4.5.",
Expand All @@ -37,6 +37,5 @@ class APIReference(TechArticle):
)



if TYPE_CHECKING:
from pydantic_schemaorg.Text import Text
3 changes: 1 addition & 2 deletions pydantic_schemaorg/Abdomen.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class Abdomen(PhysicalExam):
See: https://schema.org/Abdomen
Model depth: 5
"""
type_: str = Field("Abdomen", alias='@type')
type_: str = Field(default="Abdomen", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/AboutPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class AboutPage(WebPage):
See: https://schema.org/AboutPage
Model depth: 4
"""
type_: str = Field("AboutPage", alias='@type')
type_: str = Field(default="AboutPage", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/AcceptAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ class AcceptAction(AllocateAction):
See: https://schema.org/AcceptAction
Model depth: 5
"""
type_: str = Field("AcceptAction", alias='@type')
type_: str = Field(default="AcceptAction", alias='@type')


4 changes: 2 additions & 2 deletions pydantic_schemaorg/Accommodation.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Accommodation(Place):
See: https://schema.org/Accommodation
Model depth: 3
"""
type_: str = Field("Accommodation", alias='@type')
type_: str = Field(default="Accommodation", alias='@type')
numberOfBedrooms: Optional[Union[List[Union[Decimal, 'Number', 'QuantitativeValue', str]], Decimal, 'Number', 'QuantitativeValue', str]] = Field(
default=None,
description="The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]]"
Expand All @@ -47,7 +47,7 @@ class Accommodation(Place):
description="The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt"
"field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field).",
)
leaseLength: Optional[Union[List[Union['QuantitativeValue', 'Duration', str]], 'QuantitativeValue', 'Duration', str]] = Field(
leaseLength: Optional[Union[List[Union['Duration', 'QuantitativeValue', str]], 'Duration', 'QuantitativeValue', str]] = Field(
default=None,
description="Length of the lease for some [[Accommodation]], either particular to some [[Offer]]"
"or in some cases intrinsic to the property.",
Expand Down
3 changes: 1 addition & 2 deletions pydantic_schemaorg/AccountingService.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ class AccountingService(FinancialService):
See: https://schema.org/AccountingService
Model depth: 5
"""
type_: str = Field("AccountingService", alias='@type')
type_: str = Field(default="AccountingService", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/AchieveAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ class AchieveAction(Action):
See: https://schema.org/AchieveAction
Model depth: 3
"""
type_: str = Field("AchieveAction", alias='@type')
type_: str = Field(default="AchieveAction", alias='@type')


12 changes: 6 additions & 6 deletions pydantic_schemaorg/Action.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Action(Thing):
See: https://schema.org/Action
Model depth: 2
"""
type_: str = Field("Action", alias='@type')
type_: str = Field(default="Action", alias='@type')
result: Optional[Union[List[Union['Thing', str]], 'Thing', str]] = Field(
default=None,
description="The result produced in the action. e.g. John wrote *a book*.",
Expand All @@ -31,7 +31,7 @@ class Action(Thing):
"Also known as the semantic roles patient, affected or undergoer (which change their"
"state) or theme (which doesn't). e.g. John read *a book*.",
)
participant: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field(
participant: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field(
default=None,
description="Other co-agents that participated in the action indirectly. e.g. John wrote a book with"
"*Steve*.",
Expand All @@ -40,7 +40,7 @@ class Action(Thing):
default=None,
description="For failed actions, more information on the cause of the failure.",
)
location: Optional[Union[List[Union[str, 'Text', 'Place', 'VirtualLocation', 'PostalAddress']], str, 'Text', 'Place', 'VirtualLocation', 'PostalAddress']] = Field(
location: Optional[Union[List[Union[str, 'Text', 'VirtualLocation', 'Place', 'PostalAddress']], str, 'Text', 'VirtualLocation', 'Place', 'PostalAddress']] = Field(
default=None,
description="The location of, for example, where an event is happening, where an organization is located,"
"or where an action takes place.",
Expand All @@ -54,7 +54,7 @@ class Action(Thing):
"Event uses startDate/endDate instead of startTime/endTime, even when describing"
"dates with times. This situation may be clarified in future revisions.",
)
agent: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field(
agent: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field(
default=None,
description="The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote"
"a book.",
Expand Down Expand Up @@ -85,11 +85,11 @@ class Action(Thing):

if TYPE_CHECKING:
from pydantic_schemaorg.Thing import Thing
from pydantic_schemaorg.Person import Person
from pydantic_schemaorg.Organization import Organization
from pydantic_schemaorg.Person import Person
from pydantic_schemaorg.Text import Text
from pydantic_schemaorg.Place import Place
from pydantic_schemaorg.VirtualLocation import VirtualLocation
from pydantic_schemaorg.Place import Place
from pydantic_schemaorg.PostalAddress import PostalAddress
from pydantic_schemaorg.DateTime import DateTime
from pydantic_schemaorg.Time import Time
Expand Down
9 changes: 4 additions & 5 deletions pydantic_schemaorg/ActionAccessSpecification.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ActionAccessSpecification(Intangible):
See: https://schema.org/ActionAccessSpecification
Model depth: 3
"""
type_: str = Field("ActionAccessSpecification", alias='@type')
type_: str = Field(default="ActionAccessSpecification", alias='@type')
category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']], AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']] = Field(
default=None,
description="A category for the item. Greater signs or slashes can be used to informally indicate a"
Expand All @@ -27,7 +27,7 @@ class ActionAccessSpecification(Intangible):
default=None,
description="The beginning of the availability of the product or service included in the offer.",
)
eligibleRegion: Optional[Union[List[Union[str, 'Text', 'GeoShape', 'Place']], str, 'Text', 'GeoShape', 'Place']] = Field(
eligibleRegion: Optional[Union[List[Union[str, 'Text', 'Place', 'GeoShape']], str, 'Text', 'Place', 'GeoShape']] = Field(
default=None,
description="The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for"
"the geo-political region(s) for which the offer or delivery charge specification is"
Expand All @@ -47,15 +47,14 @@ class ActionAccessSpecification(Intangible):
default=None,
description="The end of the availability of the product or service included in the offer.",
)
ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'GeoShape', 'Place']], str, 'Text', 'GeoShape', 'Place']] = Field(
ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'Place', 'GeoShape']], str, 'Text', 'Place', 'GeoShape']] = Field(
default=None,
description="The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for"
"the geo-political region(s) for which the offer or delivery charge specification is"
"not valid, e.g. a region where the transaction is not allowed. See also [[eligibleRegion]].",
)



if TYPE_CHECKING:
from pydantic_schemaorg.URL import URL
from pydantic_schemaorg.Text import Text
Expand All @@ -64,8 +63,8 @@ class ActionAccessSpecification(Intangible):
from pydantic_schemaorg.DateTime import DateTime
from pydantic_schemaorg.Date import Date
from pydantic_schemaorg.Time import Time
from pydantic_schemaorg.GeoShape import GeoShape
from pydantic_schemaorg.Place import Place
from pydantic_schemaorg.GeoShape import GeoShape
from pydantic_schemaorg.Boolean import Boolean
from pydantic_schemaorg.MediaSubscription import MediaSubscription
from pydantic_schemaorg.Offer import Offer
3 changes: 1 addition & 2 deletions pydantic_schemaorg/ActionStatusType.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class ActionStatusType(StatusEnumeration):
See: https://schema.org/ActionStatusType
Model depth: 5
"""
type_: str = Field("ActionStatusType", alias='@type')
type_: str = Field(default="ActionStatusType", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/ActivateAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ class ActivateAction(ControlAction):
See: https://schema.org/ActivateAction
Model depth: 4
"""
type_: str = Field("ActivateAction", alias='@type')
type_: str = Field(default="ActivateAction", alias='@type')


2 changes: 1 addition & 1 deletion pydantic_schemaorg/ActivationFee.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class ActivationFee(PriceComponentTypeEnumeration):
See: https://schema.org/ActivationFee
Model depth: 5
"""
type_: str = Field("ActivationFee", alias='@type')
type_: str = Field(default="ActivationFee", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/ActiveActionStatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class ActiveActionStatus(ActionStatusType):
See: https://schema.org/ActiveActionStatus
Model depth: 6
"""
type_: str = Field("ActiveActionStatus", alias='@type')
type_: str = Field(default="ActiveActionStatus", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/ActiveNotRecruiting.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class ActiveNotRecruiting(MedicalStudyStatus):
See: https://schema.org/ActiveNotRecruiting
Model depth: 6
"""
type_: str = Field("ActiveNotRecruiting", alias='@type')
type_: str = Field(default="ActiveNotRecruiting", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/AddAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class AddAction(UpdateAction):
See: https://schema.org/AddAction
Model depth: 4
"""
type_: str = Field("AddAction", alias='@type')
type_: str = Field(default="AddAction", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/AdministrativeArea.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class AdministrativeArea(Place):
See: https://schema.org/AdministrativeArea
Model depth: 3
"""
type_: str = Field("AdministrativeArea", alias='@type')
type_: str = Field(default="AdministrativeArea", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/AdultEntertainment.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class AdultEntertainment(EntertainmentBusiness):
See: https://schema.org/AdultEntertainment
Model depth: 5
"""
type_: str = Field("AdultEntertainment", alias='@type')
type_: str = Field(default="AdultEntertainment", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/AdvertiserContentArticle.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ class AdvertiserContentArticle(Article):
See: https://schema.org/AdvertiserContentArticle
Model depth: 4
"""
type_: str = Field("AdvertiserContentArticle", alias='@type')
type_: str = Field(default="AdvertiserContentArticle", alias='@type')


2 changes: 1 addition & 1 deletion pydantic_schemaorg/AerobicActivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ class AerobicActivity(PhysicalActivityCategory):
See: https://schema.org/AerobicActivity
Model depth: 5
"""
type_: str = Field("AerobicActivity", alias='@type')
type_: str = Field(default="AerobicActivity", alias='@type')


7 changes: 3 additions & 4 deletions pydantic_schemaorg/AggregateOffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class AggregateOffer(Offer):
See: https://schema.org/AggregateOffer
Model depth: 4
"""
type_: str = Field("AggregateOffer", alias='@type')
offers: Optional[Union[List[Union['Demand', 'Offer', str]], 'Demand', 'Offer', str]] = Field(
type_: str = Field(default="AggregateOffer", alias='@type')
offers: Optional[Union[List[Union['Offer', 'Demand', str]], 'Offer', 'Demand', str]] = Field(
default=None,
description="An offer to provide this item—for example, an offer to sell a product, rent the"
"DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]]"
Expand Down Expand Up @@ -49,10 +49,9 @@ class AggregateOffer(Offer):
)



if TYPE_CHECKING:
from pydantic_schemaorg.Demand import Demand
from pydantic_schemaorg.Offer import Offer
from pydantic_schemaorg.Demand import Demand
from pydantic_schemaorg.Number import Number
from pydantic_schemaorg.Text import Text
from pydantic_schemaorg.Integer import Integer
3 changes: 1 addition & 2 deletions pydantic_schemaorg/AggregateRating.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AggregateRating(Rating):
See: https://schema.org/AggregateRating
Model depth: 4
"""
type_: str = Field("AggregateRating", alias='@type')
type_: str = Field(default="AggregateRating", alias='@type')
reviewCount: Optional[Union[List[Union[int, 'Integer', str]], int, 'Integer', str]] = Field(
default=None,
description="The count of total number of reviews.",
Expand All @@ -29,7 +29,6 @@ class AggregateRating(Rating):
)



if TYPE_CHECKING:
from pydantic_schemaorg.Integer import Integer
from pydantic_schemaorg.Thing import Thing
3 changes: 1 addition & 2 deletions pydantic_schemaorg/AgreeAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ class AgreeAction(ReactAction):
See: https://schema.org/AgreeAction
Model depth: 5
"""
type_: str = Field("AgreeAction", alias='@type')
type_: str = Field(default="AgreeAction", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/Airline.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Airline(Organization):
See: https://schema.org/Airline
Model depth: 3
"""
type_: str = Field("Airline", alias='@type')
type_: str = Field(default="Airline", alias='@type')
boardingPolicy: Optional[Union[List[Union['BoardingPolicyType', str]], 'BoardingPolicyType', str]] = Field(
default=None,
description="The type of boarding policy used by the airline (e.g. zone-based or group-based).",
Expand All @@ -25,7 +25,6 @@ class Airline(Organization):
)



if TYPE_CHECKING:
from pydantic_schemaorg.BoardingPolicyType import BoardingPolicyType
from pydantic_schemaorg.Text import Text
2 changes: 1 addition & 1 deletion pydantic_schemaorg/Airport.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Airport(CivicStructure):
See: https://schema.org/Airport
Model depth: 4
"""
type_: str = Field("Airport", alias='@type')
type_: str = Field(default="Airport", alias='@type')
iataCode: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field(
default=None,
description="IATA identifier for an airline or airport.",
Expand Down
3 changes: 1 addition & 2 deletions pydantic_schemaorg/AlbumRelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class AlbumRelease(MusicAlbumReleaseType):
See: https://schema.org/AlbumRelease
Model depth: 5
"""
type_: str = Field("AlbumRelease", alias='@type')
type_: str = Field(default="AlbumRelease", alias='@type')


2 changes: 1 addition & 1 deletion pydantic_schemaorg/AlignmentObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AlignmentObject(Intangible):
See: https://schema.org/AlignmentObject
Model depth: 3
"""
type_: str = Field("AlignmentObject", alias='@type')
type_: str = Field(default="AlignmentObject", alias='@type')
alignmentType: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field(
default=None,
description="A category of alignment between the learning resource and the framework node. Recommended"
Expand Down
3 changes: 1 addition & 2 deletions pydantic_schemaorg/AllWheelDriveConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class AllWheelDriveConfiguration(DriveWheelConfigurationValue):
See: https://schema.org/AllWheelDriveConfiguration
Model depth: 6
"""
type_: str = Field("AllWheelDriveConfiguration", alias='@type')
type_: str = Field(default="AllWheelDriveConfiguration", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/AllergiesHealthAspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class AllergiesHealthAspect(HealthAspectEnumeration):
See: https://schema.org/AllergiesHealthAspect
Model depth: 5
"""
type_: str = Field("AllergiesHealthAspect", alias='@type')
type_: str = Field(default="AllergiesHealthAspect", alias='@type')


2 changes: 1 addition & 1 deletion pydantic_schemaorg/AllocateAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class AllocateAction(OrganizeAction):
See: https://schema.org/AllocateAction
Model depth: 4
"""
type_: str = Field("AllocateAction", alias='@type')
type_: str = Field(default="AllocateAction", alias='@type')


2 changes: 1 addition & 1 deletion pydantic_schemaorg/AmpStory.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class AmpStory(CreativeWork):
See: https://schema.org/AmpStory
Model depth: 3
"""
type_: str = Field("AmpStory", alias='@type')
type_: str = Field(default="AmpStory", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/AmusementPark.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class AmusementPark(EntertainmentBusiness):
See: https://schema.org/AmusementPark
Model depth: 5
"""
type_: str = Field("AmusementPark", alias='@type')
type_: str = Field(default="AmusementPark", alias='@type')


3 changes: 1 addition & 2 deletions pydantic_schemaorg/AnaerobicActivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ class AnaerobicActivity(PhysicalActivityCategory):
See: https://schema.org/AnaerobicActivity
Model depth: 5
"""
type_: str = Field("AnaerobicActivity", alias='@type')
type_: str = Field(default="AnaerobicActivity", alias='@type')


Loading

0 comments on commit eb4df2d

Please sign in to comment.