Skip to content

Conversation

@rolandwalker
Copy link
Contributor

Description

  • we no longer support Python < 3.7 so importlib can be trusted
  • re-assigning to "dirs" confuses the typechecker
  • prefer "dir_" rather than redefining a builtin
  • fix xdg_config_home so that the value cannot be None (at least so that mypy can infer that)
  • use an array instead of a tuple for a value of varying length

No functional change.

There are other places where we try to support old Pythons which could now be cleaned up.

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).

 * we no longer support Python < 3.7 so importlib can be trusted
 * re-assigning to "dirs" confuses the typechecker
 * prefer "dir_" rather than redefining a builtin
 * fix xdg_config_home so that the value cannot be None (at least so
   that mypy can infer that)
 * use an array instead of a tuple for a value of varying length

No functional change.

There are other places where we try to support old Pythons which could
now be cleaned up.
@rolandwalker rolandwalker requested a review from amjith April 22, 2025 15:41
@rolandwalker rolandwalker self-assigned this Apr 22, 2025
@amjith
Copy link
Member

amjith commented Apr 22, 2025

Nice! Cleaning up always feels good. 🍒

@amjith amjith merged commit 27a0f2f into main Apr 22, 2025
5 checks passed
@rolandwalker rolandwalker deleted the RW/type-lint-nits-20250422 branch January 21, 2026 15:20
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