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:     connection_types=[SmartCardConnection],  # Possible Connection types to allow
  )
  
  with connection:  # Makes sure we close the connection after this block
      piv = PivSession(connection)
      attempts = piv.get_pin_attempts()
      print(f"You have {attempts} PIN attempts left.")
  
negative.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. Once you are done
  using a Connection, you should close it. This can be done explicitly by calling
  `connection.close()`, or by using a `with` block.
  
  ==== Example
  [source,py]
  