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

pull/21145/head
Harrison Chase 1 month ago committed by GitHub
parent 2a6f78a53f
commit 4d1c21d97d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -283,7 +283,7 @@ class SQLDatabase:
return sorted(self._include_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]:
"""Get names of tables available."""
return self.get_usable_table_names()

Loading…
Cancel
Save