Skip to content

fix(ci): green up v26.06.95 (ruff + mypy --strict)#125

Merged
ancongui merged 1 commit into
mainfrom
fix/ci-union-safe-display-name
Jun 10, 2026
Merged

fix(ci): green up v26.06.95 (ruff + mypy --strict)#125
ancongui merged 1 commit into
mainfrom
fix/ci-union-safe-display-name

Conversation

@ancongui

Copy link
Copy Markdown
Contributor

Follow-up to #124. The union-safe display_name fix needed two CI touch-ups: isinstance narrowing so mypy --strict sees a str return, and the PEP 604 form in the test (ruff). Lint + mypy (673 files) + tests all green locally.

- registry.py: narrow getattr(...) via isinstance(direct, str) so display_name
  has no Any return (mypy --strict no-any-return).
- tests: use the PEP 604 form (_A | None) instead of typing.Optional (ruff UP).

Keeps v26.06.95 green on Lint + Mypy + Test.
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.

1 participant