community[patch]: Fix alternative name in deprecation notice for sql_database (#21144)

This commit is contained in:
Harrison Chase
2024-05-01 07:59:42 -07:00
committed by GitHub
parent 2a6f78a53f
commit 4d1c21d97d

View File

@@ -283,7 +283,7 @@ class SQLDatabase:
return sorted(self._include_tables) return sorted(self._include_tables)
return sorted(self._all_tables - self._ignore_tables) return sorted(self._all_tables - self._ignore_tables)
@deprecated("0.0.1", alternative="get_usable_table_name", removal="0.2.0") @deprecated("0.0.1", alternative="get_usable_table_names", removal="0.2.0")
def get_table_names(self) -> Iterable[str]: def get_table_names(self) -> Iterable[str]:
"""Get names of tables available.""" """Get names of tables available."""
return self.get_usable_table_names() return self.get_usable_table_names()