Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.types: silence parse==bool warning until 8.0 #2164

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

dgw
Copy link
Member

@dgw dgw commented Jul 21, 2021

Description

Turns out a lot of plugins use ValidatedAttribute(..., parse=bool), and this is hardly a breaking change. It makes the most sense to tie this warning to a major version, rather than forcing plugin authors to require a minimum minor release of Sopel.

There's no technical reason to change this. It's a philosophical choice that came up for me when reviewing other plugins that make use of bools in their config sections. This warning just isn't useful immediately after deprecation; plugin authors can adopt the new type voluntarily, but Sopel doesn't need to force it in 7.x. Migrating to this new type can be part of the 8.0 migration guide, as a new major release of Sopel would be a natural point to bump plugin requirements. (That goes double for anyone using our cookiecutter template, since it pins sopel>=current_major,<next_major by default.)

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

Notes

No, I don't know why I left this line out of #2044. It absolutely makes sense given the planned removal isn't until 9.0, but there's no defense for me. I just forgot. 😅

Turns out *a lot* of plugins use `ValidatedAttribute(..., parse=bool)`,
and this is hardly a breaking change. It makes the most sense to tie
this warning to a major version, rather than forcing plugin authors to
require a minimum minor release of Sopel.
@dgw dgw added the Tweak label Jul 21, 2021
@dgw dgw added this to the 7.1.3 milestone Jul 21, 2021
@dgw dgw requested a review from a team July 21, 2021 05:05
@dgw dgw merged commit c301d97 into master Aug 9, 2021
@dgw dgw deleted the sensible-BooleanAttribute-warning branch August 9, 2021 21:23
dgw added a commit that referenced this pull request Aug 9, 2021
…ning

config.types: silence `parse==bool` warning until 8.0

Cherry-picked from master: c301d97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants