From 113bb150bee164e8ded5c16fa264f164a75db85a Mon Sep 17 00:00:00 2001 From: jacob curlin Date: Wed, 24 Dec 2025 18:07:37 -0600 Subject: [PATCH] fix: client.list_tables return type inconsistent with type hint & docstring --- src/PowerPlatform/Dataverse/client.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/PowerPlatform/Dataverse/client.py b/src/PowerPlatform/Dataverse/client.py index e59ad26..b5c349e 100644 --- a/src/PowerPlatform/Dataverse/client.py +++ b/src/PowerPlatform/Dataverse/client.py @@ -518,19 +518,19 @@ def delete_table(self, table_schema_name: str) -> None: with self._scoped_odata() as od: od._delete_table(table_schema_name) - def list_tables(self) -> list[str]: + def list_tables(self) -> list[dict[str, Any]]: """ - List all custom tables in the Dataverse environment. + List all non-private tables in the Dataverse environment. - :return: List of custom table names. - :rtype: :class:`list` of :class:`str` + :return: List of EntityDefinition metadata dictionaries. + :rtype: :class:`list` of :class:`dict` Example: - List all custom tables:: + List all non-private tables and print their logical names:: - tables = client.list_tables() - for table in tables: - print(table) + tables = client.list_tables() + for table in tables: + print(table["LogicalName"]) """ with self._scoped_odata() as od: return od._list_tables()