You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BaseDataType inhertits from Claim. The documentation states that you can add a property snaktype to the BaseDataType. However, Claim does not have a property named snaktype and so it throws an error TypeError: __init__() got an unexpected keyword argument 'snak_type'
Am I missing something or is this a bug in the rewrite? What should the correct way of working be? If this is a bug, can maybe you can give a direction for your proposed solution, so I might be able to help with a fix.
The text was updated successfully, but these errors were encountered:
Hello @pgrond
It's more like an outdated docstring in BaseDatatype.
If you want to set the snaktype of a BaseDataType/Claim (I use ExternalID in my example) you can do:
The
BaseDataType
inhertits fromClaim
. The documentation states that you can add a propertysnaktype
to theBaseDataType
. However,Claim
does not have a property namedsnaktype
and so it throws an errorTypeError: __init__() got an unexpected keyword argument 'snak_type'
Am I missing something or is this a bug in the rewrite? What should the correct way of working be? If this is a bug, can maybe you can give a direction for your proposed solution, so I might be able to help with a fix.
The text was updated successfully, but these errors were encountered: