Skip to content

chore: remove Any(collection) from str_to_bool function#92

Merged
Faraz32123 merged 1 commit intomasterfrom
chore/remove_any_from_str_to_bool
Sep 12, 2024
Merged

chore: remove Any(collection) from str_to_bool function#92
Faraz32123 merged 1 commit intomasterfrom
chore/remove_any_from_str_to_bool

Conversation

@Faraz32123
Copy link
Copy Markdown
Contributor

  • remove Any(collection) from str_to_bool function's argument type definition.

@Faraz32123 Faraz32123 merged commit 6d2ae84 into master Sep 12, 2024
@Faraz32123 Faraz32123 deleted the chore/remove_any_from_str_to_bool branch September 12, 2024 12:08
Comment thread forum/views/threads.py
for param in params:
if param in data_or_params:
context[param] = str_to_bool(data_or_params.get(param))
if value := data_or_params.get(param):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 we are not going to enter the if condition if the return value is boolean False. Is this what we want?

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