prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  TypeError: __init__() when run "uvicorn app:App"
  I'm working on Mac Os Sierra 10.12.6, python 3.7.2 and uvicorn via pip3 0.5.1.
  When I run the example uvicorn app:App get the following error:
  Traceback (most recent call last):
    File "/usr/local/bin/uvicorn", line 11, in <module>
      load_entry_point('uvicorn==0.5.1', 'console_scripts', 'uvicorn')()
    File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
      return get_distribution(dist).load_entry_point(group, name)
    File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
      return ep.load()
    File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2411, in load
      return self.resolve()
    File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
      module = __import__(self.module_name, fromlist=['__name__'], level=0)
    File "/usr/local/lib/python3.7/site-packages/uvicorn/__init__.py", line 2, in <module>
      from uvicorn.main import Server, main, run
    File "/usr/local/lib/python3.7/site-packages/uvicorn/main.py", line 212, in <module>
      ssl_ciphers: str,
    File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 170, in decorator
      _param_memo(f, OptionClass(param_decls, **attrs))
    File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1460, in __init__
      Parameter.__init__(self, param_decls, type=type, **attrs)
  TypeError: __init__() got an unexpected keyword argument 'hidden'
  
  Thank you
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 
  4 import os
  5 import re
  6 import sys
  7 import platform
  8 
  9 from setuptools import setup
  10 
  11 
  12 def get_version(package):
  13     """
  14     Return package version as listed in `__version__` in `init.py`.
  15     """
  16     path = os.path.join(package, '__init__.py')
  17     init_py = open(path, 'r', encoding='utf8').read()
  18     return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
  19 
  20 
  21 def get_long_description():
  22     """
  23     Return the README.
  24     """
  25     return open('README.md', 'r', encoding='utf8').read()
  26 
  27 
  28 def get_packages(package):
  29     """
  30     Return root package and all sub-packages.
  31     """
  32     return [dirpath
  33             for dirpath, dirnames, filenames in os.walk(package)
  34             if os.path.exists(os.path.join(dirpath, '__init__.py'))]
  35 
  36 
  37 env_marker = (
  38     "sys_platform != 'win32'"
  39     " and sys_platform != 'cygwin'"
  40     " and platform_python_implementation != 'pypy'"
  41 )
  42 
  43 requirements = [
  44     "click",
  45     "h11",
  46     "websockets>=6.0",
  47     "httptools;" + env_marker,
  48     "uvloop;" + env_marker,
  49 ]
  50 
  51 
  52 setup(
  53     name='uvicorn',
  54     version=get_version('uvicorn'),
  55     url='https://github.com/encode/uvicorn',
  56     license='BSD',
  57     description='The lightning-fast ASGI server.',
  58     long_description=get_long_description(),
  59     long_description_content_type='text/markdown',
  60     author='Tom Christie',
  61     author_email='tom@tomchristie.com',
  62     packages=get_packages('uvicorn'),
  63     install_requires=requirements,
  64     data_files = [("", ["LICENSE.md"])],
  65     classifiers=[
  66         'Development Status :: 3 - Alpha',
  67         'Environment :: Web Environment',
  68         'Intended Audience :: Developers',
  69         'License :: OSI Approved :: BSD License',
  70         'Operating System :: OS Independent',
  71         'Topic :: Internet :: WWW/HTTP',
  72         'Programming Language :: Python :: 3',
  73         'Programming Language :: Python :: 3.5',
  74         'Programming Language :: Python :: 3.6',
  75         'Programming Language :: Python :: 3.7',
  76         'Programming Language :: Python :: Implementation :: CPython',
  77         'Programming Language :: Python :: Implementation :: PyPy',
  78     ],
  79     entry_points="""
  80     [console_scripts]
  81     uvicorn=uvicorn.main:main
  82     """
  83 )
  84
  [end of setup.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -41,11 +41,11 @@
   )
   
   requirements = [
  -    "click",
  -    "h11",
  -    "websockets>=6.0",
  -    "httptools;" + env_marker,
  -    "uvloop;" + env_marker,
  +    "click==7.*",
  +    "h11==0.8.*",
  +    "websockets==7.*",
  +    "httptools==0.0.13 ;" + env_marker,
  +    "uvloop==0.12.* ;" + env_marker,
   ]
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -41,11 +41,11 @@\n )\n \n requirements = [\n-    \"click\",\n-    \"h11\",\n-    \"websockets>=6.0\",\n-    \"httptools;\" + env_marker,\n-    \"uvloop;\" + env_marker,\n+    \"click==7.*\",\n+    \"h11==0.8.*\",\n+    \"websockets==7.*\",\n+    \"httptools==0.0.13 ;\" + env_marker,\n+    \"uvloop==0.12.* ;\" + env_marker,\n ]\n", "issue": "TypeError: __init__() when run \"uvicorn app:App\"\nI'm working on Mac Os Sierra 10.12.6, python 3.7.2 and uvicorn via pip3 0.5.1.\r\nWhen I run the example uvicorn app:App get the following error:\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/uvicorn\", line 11, in <module>\r\n    load_entry_point('uvicorn==0.5.1', 'console_scripts', 'uvicorn')()\r\n  File \"/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py\", line 489, in load_entry_point\r\n    return get_distribution(dist).load_entry_point(group, name)\r\n  File \"/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py\", line 2793, in load_entry_point\r\n    return ep.load()\r\n  File \"/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py\", line 2411, in load\r\n    return self.resolve()\r\n  File \"/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py\", line 2417, in resolve\r\n    module = __import__(self.module_name, fromlist=['__name__'], level=0)\r\n  File \"/usr/local/lib/python3.7/site-packages/uvicorn/__init__.py\", line 2, in <module>\r\n    from uvicorn.main import Server, main, run\r\n  File \"/usr/local/lib/python3.7/site-packages/uvicorn/main.py\", line 212, in <module>\r\n    ssl_ciphers: str,\r\n  File \"/usr/local/lib/python3.7/site-packages/click/decorators.py\", line 170, in decorator\r\n    _param_memo(f, OptionClass(param_decls, **attrs))\r\n  File \"/usr/local/lib/python3.7/site-packages/click/core.py\", line 1460, in __init__\r\n    Parameter.__init__(self, param_decls, type=type, **attrs)\r\nTypeError: __init__() got an unexpected keyword argument 'hidden'\r\n\r\nThank you\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport re\nimport sys\nimport platform\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n    \"\"\"\n    Return package version as listed in `__version__` in `init.py`.\n    \"\"\"\n    path = os.path.join(package, '__init__.py')\n    init_py = open(path, 'r', encoding='utf8').read()\n    return re.search(\"__version__ = ['\\\"]([^'\\\"]+)['\\\"]\", init_py).group(1)\n\n\ndef get_long_description():\n    \"\"\"\n    Return the README.\n    \"\"\"\n    return open('README.md', 'r', encoding='utf8').read()\n\n\ndef get_packages(package):\n    \"\"\"\n    Return root package and all sub-packages.\n    \"\"\"\n    return [dirpath\n            for dirpath, dirnames, filenames in os.walk(package)\n            if os.path.exists(os.path.join(dirpath, '__init__.py'))]\n\n\nenv_marker = (\n    \"sys_platform != 'win32'\"\n    \" and sys_platform != 'cygwin'\"\n    \" and platform_python_implementation != 'pypy'\"\n)\n\nrequirements = [\n    \"click\",\n    \"h11\",\n    \"websockets>=6.0\",\n    \"httptools;\" + env_marker,\n    \"uvloop;\" + env_marker,\n]\n\n\nsetup(\n    name='uvicorn',\n    version=get_version('uvicorn'),\n    url='https://github.com/encode/uvicorn',\n    license='BSD',\n    description='The lightning-fast ASGI server.',\n    long_description=get_long_description(),\n    long_description_content_type='text/markdown',\n    author='Tom Christie',\n    author_email='tom@tomchristie.com',\n    packages=get_packages('uvicorn'),\n    install_requires=requirements,\n    data_files = [(\"\", [\"LICENSE.md\"])],\n    classifiers=[\n        'Development Status :: 3 - Alpha',\n        'Environment :: Web Environment',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: BSD License',\n        'Operating System :: OS Independent',\n        'Topic :: Internet :: WWW/HTTP',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Programming Language :: Python :: Implementation :: CPython',\n        'Programming Language :: Python :: Implementation :: PyPy',\n    ],\n    entry_points=\"\"\"\n    [console_scripts]\n    uvicorn=uvicorn.main:main\n    \"\"\"\n)\n", "path": "setup.py"}]}