title: Python tqdm TypeError: <lambda>() takes 1 positional argument but 2 were given
body: <p>I tried to create a progress bar to view progress of file transferring by using the below code.</p>
  
  <pre class="lang-python prettyprint-override"><code>from tqdm import tqdm
  import pysftp
  cnopts = pysftp.CnOpts()
  cnopts.hostkeys = None
  srv = pysftp.Connection(host=host,username=username,password=password,cnopts=cnopts)
  with tqdm(unit = 'blocks', unit_scale = True, leave = False, miniters = 1, desc = 'Uploading......', total = filesize) as tqdm_instance:
      srv.put("D:\\wp-deploy.jpg","/var/www/html/wp-deploy.jpg",callback=lambda sent:tqdm_instance.update(len(sent)))
  </code></pre>
  
  <p>and I got this error:</p>
  
  <pre><code>TypeError: &lt;lambda&gt;() takes 1 positional argument but 2 were given
  </code></pre>