Skip to content

Commit

Permalink
Various docstring fixes (apache#18221)
Browse files Browse the repository at this point in the history
  • Loading branch information
PApostol authored and michael_hoffman committed Mar 23, 2022
1 parent f8460e3 commit 9be11f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion superset/utils/mock_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?
"""
Expand Down Expand Up @@ -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
"""
Expand Down
1 change: 1 addition & 0 deletions superset/views/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

Expand Down
2 changes: 0 additions & 2 deletions tests/integration_tests/fixtures/query_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9be11f5

Please sign in to comment.