Dict > dict
Browse files
app.py
CHANGED
@@ -12,12 +12,12 @@ api = tkapi.TKApi()
|
|
12 |
|
13 |
|
14 |
@tool
|
15 |
-
def Get_Active_Fractions() -> list[
|
16 |
"""
|
17 |
Retrieves a list of all currently active fractions (political parties) in the Dutch parliament.
|
18 |
|
19 |
Returns:
|
20 |
-
list[
|
21 |
- 'naam': Full name of the political party (string)
|
22 |
- 'afkorting': Abbreviation/acronym of the party (string)
|
23 |
- 'zetels_aantal': Number of seats the party holds (integer)
|
|
|
12 |
|
13 |
|
14 |
@tool
|
15 |
+
def Get_Active_Fractions() -> list[dict[str, str | int]]:
|
16 |
"""
|
17 |
Retrieves a list of all currently active fractions (political parties) in the Dutch parliament.
|
18 |
|
19 |
Returns:
|
20 |
+
list[dict[str, Union[str, int]]]: A list of dictionaries containing information about each fraction:
|
21 |
- 'naam': Full name of the political party (string)
|
22 |
- 'afkorting': Abbreviation/acronym of the party (string)
|
23 |
- 'zetels_aantal': Number of seats the party holds (integer)
|