title: Python match case dictionary keys
body: <p>Getting the following error when using match case (python 3.10.4). I'm trying to use dictionary keys to make  the cases modular.</p>
  <p>TypeError: called match pattern must be type</p>
  <pre><code>keys = { 'A': 'apple',
           'B' : 'banana'}
  fruit = 'A'
  match fruit:
      case keys.get('A'):
          print('apple')
     
      case keys.get('B'):
          print('Banana')
  </code></pre>