Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell authored Oct 19, 2021
1 parent 4a554a6 commit 122c2c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aiida/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import re
import sys
from typing import Any, Dict
from uuid import UUID

from .lang import classproperty
Expand Down Expand Up @@ -388,7 +389,7 @@ def _prettify_label_latex_simple(cls, label):
return re.sub(r'(\d+)', r'$_{\1}$', label)

@classproperty
def prettifiers(cls): # pylint: disable=no-self-argument
def prettifiers(cls) -> Dict[str, Any]: # pylint: disable=no-self-argument
"""
Property that returns a dictionary that for each string associates
the function to prettify a label
Expand All @@ -412,7 +413,7 @@ def get_prettifiers(cls):
:return: a list of strings
"""
return sorted(cls.prettifiers.keys()) # pylint: disable=no-member
return sorted(cls.prettifiers.keys())

def __init__(self, format): # pylint: disable=redefined-builtin
"""
Expand Down

0 comments on commit 122c2c6

Please sign in to comment.