Challenge - self
3.12.3
type checker:  pyright

Complete code following the instructions, so that lines followed by # expect-type-error (if any) fail type check, while others can pass.
Hit the "▶️ Run" button to see result.

💡 Read Hints
  • Check out Self——it's really easy, isn't it?
  • How about challenging yourself by using TypeVar instead?