Skip to content

Refactor: Add type annotations to regex extraction results#327

Merged
vicsanity623 merged 1 commit into
mainfrom
pyob-evolution-v3-1779960689
May 28, 2026
Merged

Refactor: Add type annotations to regex extraction results#327
vicsanity623 merged 1 commit into
mainfrom
pyob-evolution-v3-1779960689

Conversation

@pyob-bot
Copy link
Copy Markdown
Collaborator

Summary of Changes

  • Added explicit type annotations (list[str]) to the results of re.findall calls within the _parse_javascript and _parse_html methods.
  • Improved code readability and static analysis compatibility by defining the expected return types for these regex operations.

Technical Impact

  • Enhances type safety within the CodeParser class.
  • Facilitates better IDE autocompletion and static type checking (e.g., via Mypy or Pyright) for the variables holding regex matches.
  • No changes were made to the underlying regex logic or runtime behavior.

Base automatically changed from pyob-evolution-v2-1779960496 to main May 28, 2026 11:22
@vicsanity623 vicsanity623 merged commit 08a090b into main May 28, 2026
1 check passed
@vicsanity623 vicsanity623 deleted the pyob-evolution-v3-1779960689 branch May 28, 2026 11:22
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