Various docstring fixes (#18221)

This commit is contained in:
PApostol
2022-03-21 16:01:57 +00:00
committed by GitHub
parent af91a13670
commit c07a707eab
3 changed files with 3 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ def add_data(
If the table already exists `columns` can be `None`.
:param Optional[List[ColumnInfo]] columns: list of column names and types to create
:param int run_nows: how many rows to generate and insert
:param int num_rows: how many rows to generate and insert
:param str table_name: name of table, will be created if it doesn't exist
:param bool append: if the table already exists, append data or replace?
"""
@@ -239,6 +239,7 @@ def add_sample_rows(
) -> Iterator[Model]:
"""
Add entities of a given model.
:param Session session: an SQLAlchemy session
:param Model model: a Superset/FAB model
:param int count: how many entities to generate and insert
"""

View File

@@ -279,6 +279,7 @@ def apply_display_max_row_limit(
metadata.
:param sql_results: The results of a sql query from sql_lab.get_sql_results
:param rows: The number of rows to apply a limit to
:returns: The mutated sql_results structure
"""

View File

@@ -37,8 +37,6 @@ def get_query_context(
generated by the "Boy Name Cloud" chart in the examples.
:param query_name: name of an example query, which is always in the format
of `datasource_name[:test_case_name]`, where `:test_case_name` is optional.
:param datasource_id: id of datasource to query.
:param datasource_type: type of datasource to query.
:param add_postprocessing_operations: Add post-processing operations to QueryObject
:param add_time_offsets: Add time offsets to QueryObject(advanced analytics)
:param form_data: chart metadata