Skip to content

chore: ruff auto-fix UP045 — non-pep604-annotation-optional - #32024

Closed
wesleysimplicio wants to merge 1 commit into
NousResearch:mainfrom
wesleysimplicio:chore/ruff-UP045
Closed

chore: ruff auto-fix UP045 — non-pep604-annotation-optional#32024
wesleysimplicio wants to merge 1 commit into
NousResearch:mainfrom
wesleysimplicio:chore/ruff-UP045

Conversation

@wesleysimplicio

@wesleysimplicio wesleysimplicio commented May 25, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

chore: ruff auto-fix UP045 — non-pep604-annotation-optional.

Root cause

The detailed rationale from the original PR body is preserved below. This template update keeps the review structure consistent with #29640.

Fix

Why this shape

This shape mirrors #29640 so reviewers can quickly compare scope, root cause, fix, tests, and related context without having to decode a custom PR description.

Tests

  • ruff check passa com zero erros (regra já ativa na config)
  • Nenhuma mudança de comportamento em runtime — apenas transformações sintáticas
  • pytest mantém o comportamento esperado

Generated by Hermes Turbo

Related PRs / issues

  • Original body preserved below for full context.
Original body

Summary

chore: ruff auto-fix UP045 — non-pep604-annotation-optional.

What Changed

  • pyproject.toml: added UP045 to [tool.ruff.lint] select
  • 313 files changed: +3726/-3728 lines

Fluxo

O ruff percorre a árvore do projeto aplicando a regra UP045 onde encontra violações. As transformações foram feitas por auto-fix e mantêm o comportamento do código.

Visão

Com a regra habilitada no lint, o projeto passa a bloquear regressões futuras no mesmo padrão e fica mais consistente para novos commits.

Test Plan

  • ruff check passa com zero erros (regra já ativa na config)
  • Nenhuma mudança de comportamento em runtime — apenas transformações sintáticas
  • pytest mantém o comportamento esperado

Generated by Hermes Turbo


Generated by Hermes Turbo

@wesleysimplicio
wesleysimplicio requested a review from a team May 25, 2026 11:17
@daimon-nous daimon-nous Bot added type/refactor Code restructuring, no behavior change P3 Low — cosmetic, nice to have labels May 25, 2026
@wesleysimplicio

Copy link
Copy Markdown
Contributor Author

Closing non-fix PR as requested — mantendo apenas PRs de fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant