Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/common/helpers.py
    ... ... @@ -25,6 +25,9 @@
    25 25
     # You should have received a copy of the GNU General Public License
    
    26 26
     # along with Gajim. If not, see <http://www.gnu.org/licenses/>.
    
    27 27
     
    
    28
    +from typing import Any  # pylint: disable=unused-import
    
    29
    +from typing import Dict  # pylint: disable=unused-import
    
    30
    +
    
    28 31
     import sys
    
    29 32
     import re
    
    30 33
     import os
    
    ... ... @@ -1523,8 +1526,9 @@ def save_roster_position(window):
    1523 1526
     
    
    1524 1527
     
    
    1525 1528
     class Singleton(type):
    
    1526
    -    _instances = {}
    
    1529
    +    _instances = {}  # type: Dict[Any, Any]
    
    1527 1530
         def __call__(cls, *args, **kwargs):
    
    1528 1531
             if cls not in cls._instances:
    
    1529
    -            cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
    
    1532
    +            cls._instances[cls] = super(Singleton, cls).__call__(
    
    1533
    +                *args, **kwargs)
    
    1530 1534
             return cls._instances[cls]