Skip to content

Conversation

@DimitriPapadopoulos
Copy link
Contributor

@henryiii
Copy link
Contributor

Shouldn't this rule be added to the rules we check?

PYI032 Prefer `object` to `Any` for the second parameter to `__eq__`
@DimitriPapadopoulos
Copy link
Contributor Author

DimitriPapadopoulos commented May 22, 2025

A few occurrences of this issue remain in tests:

PYI024 Use `typing.NamedTuple` instead of `collections.namedtuple`

Should I apply the rule? Perhaps disable it in tests? I tend towards the latter. See #822.

Also ignore other rules per file instead of globally.
@henryiii henryiii merged commit 7952e97 into pypa:main May 22, 2025
38 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the PYI branch May 23, 2025 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants