Challenge - optional
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 union type can be created using the | operator, e.g: X | Y
  • None can be used for typing directly
  • Type hint doesn't simply make an argument "optional", that's the default value's job