From 8d3b7726123478bf5ea770b3b224869d51d8a7dc Mon Sep 17 00:00:00 2001 From: Fridolin Glatter Date: Wed, 4 Dec 2024 13:08:55 +0100 Subject: [PATCH] Annotate cat_list() --- message_ix/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/message_ix/core.py b/message_ix/core.py index c6840c6b3..652b64d13 100755 --- a/message_ix/core.py +++ b/message_ix/core.py @@ -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)