Challenge - descriptor
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
  • A descriptor's __get__ method is called in 2 different ways: "owned by class" or "owned by instance", you have to annotate the method for both cases.
  • Don't panic, @overload can help you with that.