On 3/24/20 11:40, Pavel Dvořák wrote:
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?

I use the Python logger to filter a warning. Example code here, look out for the 'setup' function, down at the bottom of the file.

https://github.com/jfasch/jfasch-home/blob/master/conf.py

It might not be a silver bullet, maybe there's a better way for your case. I'd have had to patch the Sphinx html builder; so I filter the log as a last resort.

Jörg
--
DI Jörg Faschingbauer   
Linux und Open Source - Programmierung, Beratung und Schulung   
https://www.faschingbauer.me    
http://www.faschingbauer.co.at  
[email protected]        
Bergwirtstrasse 10      
A-8075 Hart bei Graz    
Tel. +43-664-5783814    
UID: ATU64329756

--
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/0c27fb97-9ea6-b18b-f3f0-16c491f17242%40faschingbauer.co.at.

Reply via email to