Skip to content

Remove redundant self-assignments in TVMaze.pick_series#166

Merged
IrishPrime merged 1 commit into
mainfrom
165/remove-self-assignments-pick-series
May 9, 2026
Merged

Remove redundant self-assignments in TVMaze.pick_series#166
IrishPrime merged 1 commit into
mainfrom
165/remove-self-assignments-pick-series

Conversation

@IrishPrime

Copy link
Copy Markdown
Owner

The case patterns already bind name, series_id, and premiered in the enclosing scope, so the name = name / series_id = series_id / premiered = premiered lines were no-ops. Remove them to resolve nine PLW0127 warnings from ruff.

Remove unnecessary global to resolve two PLW0602 warnings.

Use more modern | None type annotation rather than typing.Optional.

Resolve #165.

The `case` patterns already bind `name`, `series_id`, and `premiered` in
the enclosing scope, so the `name = name` / `series_id = series_id` /
`premiered = premiered` lines were no-ops. Remove them to resolve nine
`PLW0127` warnings from `ruff`.

Remove unnecessary `global` to resolve two `PLW0602` warnings.

Use more modern `| None` type annotation rather than `typing.Optional`.

Resolve #165.
@IrishPrime IrishPrime self-assigned this May 9, 2026
@IrishPrime IrishPrime merged commit d6d69a1 into main May 9, 2026
3 checks passed
@IrishPrime IrishPrime deleted the 165/remove-self-assignments-pick-series branch May 9, 2026 02:36
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.

Remove redundant self-assignments in TVMaze.pick_series

1 participant