بتاريخ الثلاثاء، 24 مارس، 2020 1:40:11 م UTC+3، كتب Pavel Dvořák:
> Since 2.4.0 we got warnings like these:
> ```
> 
> 08:53:25 WARNING: error while formatting arguments for 
> pywikibot.Claim.__init__: wrong parameter order: <_ParameterKind.VAR_KEYWORD: 
> 4> before <_ParameterKind.POSITIONAL_OR_KEYWORD: 1>
> ```
> But there seems to be nothing wrong with:
> ```
>         @deprecated_args(isReference='is_reference', 
> isQualifier='is_qualifier')
>         def __init__(self, site, pid, snak=None, hash=None, 
> is_reference=False,
>                      is_qualifier=False, rank='normal', **kwargs):
>             """
>             Initializer.
>     
>             Defined by the "snak" value, supplemented by site + pid
>     
>             @param site: repository the claim is on
>             @type site: pywikibot.site.DataSite
>             @param pid: property id, with "P" prefix
>             @param snak: snak identifier for claim
>             @param hash: hash identifier for references
>             @param is_reference: whether specified claim is a reference
>             @param is_qualifier: whether specified claim is a qualifier
>             @param rank: rank for claim
>             """
> 
> ```
> How to fix these?

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/bd4d1972-23a5-436e-a69a-9065258eb7f7%40googlegroups.com.

Reply via email to