Skip to content

Commit

Permalink
Annotate cat_list()
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Dec 4, 2024
1 parent 5c0b44f commit 8d3b772
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion message_ix/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,17 @@ def var(self, name, filters=None):
"""
return self._year_as_int(name, super().var(name, filters))

def cat_list(self, name):
def cat_list(self, name: str) -> list[str]:
"""Return a list of all categories for a mapping set.
Parameters
----------
name : str
Name of the set.
Returns
-------
list of str
"""
return self._backend("cat_list", name)

Expand Down

0 comments on commit 8d3b772

Please sign in to comment.