Skip to content

Conversation

@michael-k
Copy link
Contributor

The functions in message.py should not accept arbitrary kwargs, but one kwarg data with arbitrary data as a dict. This prevents the data from clashing with the actual kwargs.

The ping handler adds the data directly to the response_kwargs,
allowing internal kwargs to be overwritten.

`send_message()` and `build_message()` should not accept
`**additional_data`, but `additional_data: dict = None` instead.
@coveralls
Copy link

Coverage Status

Coverage remained the same at ?% when pulling 20f7db8 on data-handling into 4a76633 on master.

@michael-k michael-k merged commit 797d676 into master Aug 29, 2018
@michael-k michael-k deleted the data-handling branch August 29, 2018 15:43
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.

3 participants