[ty] Treat enum attributes with type annotations as members (#23776)
## Summary
Something like `foo: int = 1` inside an enum should trigger
`[invalid-enum-member-annotation]`, but should still be considered a
member.
See: https://github.com/astral-sh/ruff/pull/23772.