Skip to content

Conversation

@rolandwalker
Copy link
Contributor

@rolandwalker rolandwalker commented Dec 15, 2025

Description

  • don't reuse a variable name with different types
  • the last argument to suggest_based_on_last_token() must be an Identifier
  • extract_from_part() is a Generator of Any, which extract_table_identifiers() must accept
  • check the first half of the result of subst_favorite_query_args(), so that mypy can deduce that query does not hold a None

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

@rolandwalker rolandwalker self-assigned this Dec 15, 2025
@rolandwalker rolandwalker force-pushed the RW/typing-updates-20251215 branch from c31e84a to ec82df7 Compare December 15, 2025 20:26
 * don't reuse a variable name with different types
 * the last argument to suggest_based_on_last_token() must be an
   Identifier
 * extract_from_part() is a Generator of Any, which
   extract_table_identifiers() must accept
 * check the first half of the result of subst_favorite_query_args(),
   so that mypy can deduce that "query" does not hold a None
@rolandwalker rolandwalker force-pushed the RW/typing-updates-20251215 branch from ec82df7 to 88b35e5 Compare December 15, 2025 20:35
@rolandwalker rolandwalker merged commit 3371022 into main Dec 15, 2025
8 checks passed
@rolandwalker rolandwalker deleted the RW/typing-updates-20251215 branch December 15, 2025 20:42
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