Challenge - generic-class
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
  • The syntax for defining a generic class is: class Stack[T]:.
  • Remember to use T in the class body.