Skip to content

Use assert instead of return bool#18

Merged
asn-d6 merged 1 commit intoflake8from
assert-api
Jul 11, 2023
Merged

Use assert instead of return bool#18
asn-d6 merged 1 commit intoflake8from
assert-api

Conversation

@dapplion
Copy link
Copy Markdown
Collaborator

@dapplion dapplion commented Jul 8, 2023

API style of return Tuple[T, str] mimics Rust. However it mixes this API with exception raising. Given python is a exception based language best to use exception consistently for easier reasoning

Closes #16

@dapplion dapplion mentioned this pull request Jul 10, 2023
@asn-d6 asn-d6 marked this pull request as ready for review July 11, 2023 08:25
@asn-d6
Copy link
Copy Markdown
Collaborator

asn-d6 commented Jul 11, 2023

Thanks!

@asn-d6 asn-d6 merged commit 730aefc into flake8 Jul 11, 2023
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