Skip to content

change the check on body#982

Open
Polandia94 wants to merge 1 commit into
kevin1024:masterfrom
Polandia94:change-the-check-on-body
Open

change the check on body#982
Polandia94 wants to merge 1 commit into
kevin1024:masterfrom
Polandia94:change-the-check-on-body

Conversation

@Polandia94
Copy link
Copy Markdown

To check that body is a dict that contains an string, is probablly better to use instead of a try except clause. This should have the same behaviour, but on some cases improve the typing on the code, because is body is not an instance of a dict, previously body["string"] will be marked as failed on typeguard/mypy

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.

2 participants