anchor.diff:  
   for device, info in list_all_devices():
       if info.version >= (5, 0, 0):  # The info object provides details about the YubiKey
  -        connection, _, _ = connect_to_device(serial=info.serial, [SmartCardConnection])
  -	...  # Do something with the connection.
  +        connection, _, _ = connect_to_device(serial=info.serial, connection_types=[SmartCardConnection])
  +        with connection:
  +            ...  # Do something with the connection.
   ----
   
   
  
positive.code: The first step you'll likely want to do is to establish a Session with a
  YubiKey Application. Depending on which Application you intend to access,
  you'll need to establish a specific type of Connection. The `connect_to_device`
  function lets you search for, and connect to, a YubiKey.
  
  ==== Example
  [source,py]
  
negative.code:     pids, new_state = scan_devices()
      if new_state != state:
          state = new_state  # State has changed
          for device, info in list_all_devices():
              if info.serial not in handled_serials:  # Unhandled YubiKey
                  print(f"Programming YubiKey with serial: {info.serial}")
                  # Since we're not filtering on connection type here the Connection may have any type.
                  with connect_to_device(info.serial)[0] as connection:
                      ...  # Do something with the connection.
                  handled.add(info.serial)
      else:
          sleep(1.0)  # No change, sleep for 1 second.
  ----
  