Skip to content

Conversation

@waylan
Copy link

@waylan waylan commented Oct 17, 2025

The docs list the arguments on flatterer.flatten as fields and tables for "Python Usage." However, when used, they result in TypeError: flatten() got an unexpected keyword argument 'fields' and TypeError: flatten() got an unexpected keyword argument 'tables'. As can be seen at flatterer/__init__.py#73 and flatterer/__init__.py#75, the arguments are actually fields_csv and tables_csv respectively. This change updates the documentation to reflect the correct argument names.

Note that the arguments for flatterer.cli are fields and tables. But that function is not documented for Python usage.

The docs list the arguments on `flatterer.flatten` as `fields` and `tables` for "Python Usage." However, when used, they result in `TypeError: flatten() got an unexpected keyword argument 'fields'` and `TypeError: flatten() got an unexpected keyword argument 'tables'`. As can be seen at [flatterer/__init__.py#73](https://github.com/kindly/flatterer/blob/b6c47fb6882f574d2a664d94ca3128784cb454fe/flatterer/__init__.py#L73) and [flatterer/__init__.py#75](https://github.com/kindly/flatterer/blob/b6c47fb6882f574d2a664d94ca3128784cb454fe/flatterer/__init__.py#L75), the arguments are actually `fields_csv` and `tables_csv` respectively. This change updates the documentation to reflect the correct argument names.

Note that the arguments for `flatterer.cli` are `fields` and tables`. But that function is not documented for Python usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant