Fixing errors reported by mypy in search module files - query.py, commands.py and aggregation.py. by petyaslavova · Pull Request #3666 · redis/redis-py (original) (raw)

Pull Request Overview

This PR fixes mypy type checking errors in the Redis search module by improving type annotations and correcting type inconsistencies across query.py, commands.py, and aggregation.py files.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
redis/commands/search/query.py Enhanced type annotations, fixed return types, and improved parameter type definitions
redis/commands/search/commands.py Replaced Union with None syntax with proper Optional type annotations
redis/commands/search/aggregation.py Added comprehensive type annotations and fixed method signatures

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.