Skip to content

Conversation

@dgw
Copy link
Member

@dgw dgw commented Oct 1, 2020

Description

It's really silly that anyone who wants to use the time submodule has to do import sopel.tools.time even if they've already done from sopel import tools. This makes that unnecessary.

The intention here is to make from sopel import tools the only import needed to use the tools, tools.events, tools.time, and tools.web modules, without any extra nonsense.

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

It's really silly that anyone who wants to use the `time` submodule has
to do `import sopel.tools.time` even if they've already done `from sopel
import tools`. This makes that unnecessary.

The intention here is to make `from sopel import tools` the only import
needed to use the `tools`, `tools.events`, `tools.time`, and `tools.web`
modules, without any extra nonsense.
@dgw dgw added the Tweak label Oct 1, 2020
@dgw dgw added this to the 7.1.0 milestone Oct 1, 2020
@dgw dgw requested a review from a team October 1, 2020 05:01
@dgw dgw mentioned this pull request Oct 1, 2020
4 tasks
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

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

👍 smart

@dgw dgw merged commit 0cd434a into master Oct 8, 2020
@dgw dgw deleted the tools-convenience-imports branch October 8, 2020 14:24
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.

3 participants