prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  py.typed not bundled in release
  The latest pypi package [gym==0.23.0](https://pypi.org/project/gym/0.23.0/) does not include `py.typed`, resulting in failed `mypy` checks.
  
  Reproduce by `pip install gym` and noting the missing file or downloading the zip from pypi (zip on GH contains the file).
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 import os.path
  2 import sys
  3 import itertools
  4 
  5 from setuptools import find_packages, setup
  6 
  7 # Don't import gym module here, since deps may not be installed
  8 sys.path.insert(0, os.path.join(os.path.dirname(__file__), "gym"))
  9 from version import VERSION
  10 
  11 # Environment-specific dependencies.
  12 extras = {
  13     "atari": ["ale-py~=0.7.4"],
  14     "accept-rom-license": ["autorom[accept-rom-license]~=0.4.2"],
  15     "box2d": ["box2d-py==2.3.5", "pygame==2.1.0"],
  16     "classic_control": ["pygame==2.1.0"],
  17     "mujoco": ["mujoco_py>=1.50, <2.0"],
  18     "toy_text": ["pygame==2.1.0", "scipy>=1.4.1"],
  19     "other": ["lz4>=3.1.0", "opencv-python>=3.0"],
  20 }
  21 
  22 # Meta dependency groups.
  23 nomujoco_blacklist = set(["mujoco", "accept-rom-license", "atari"])
  24 nomujoco_groups = set(extras.keys()) - nomujoco_blacklist
  25 
  26 extras["nomujoco"] = list(
  27     itertools.chain.from_iterable(map(lambda group: extras[group], nomujoco_groups))
  28 )
  29 
  30 
  31 all_blacklist = set(["accept-rom-license"])
  32 all_groups = set(extras.keys()) - all_blacklist
  33 
  34 extras["all"] = list(
  35     itertools.chain.from_iterable(map(lambda group: extras[group], all_groups))
  36 )
  37 
  38 setup(
  39     name="gym",
  40     version=VERSION,
  41     description="Gym: A universal API for reinforcement learning environments",
  42     url="https://www.gymlibrary.ml/",
  43     author="Gym Community",
  44     author_email="jkterry@umd.edu",
  45     license="MIT",
  46     packages=[package for package in find_packages() if package.startswith("gym")],
  47     zip_safe=False,
  48     install_requires=[
  49         "numpy>=1.18.0",
  50         "cloudpickle>=1.2.0",
  51         "importlib_metadata>=4.10.0; python_version < '3.10'",
  52         "gym_notices>=0.0.4",
  53     ],
  54     extras_require=extras,
  55     package_data={
  56         "gym": [
  57             "envs/mujoco/assets/*.xml",
  58             "envs/classic_control/assets/*.png",
  59             "envs/toy_text/font/*.ttf",
  60             "envs/toy_text/img/*.png",
  61         ]
  62     },
  63     tests_require=["pytest", "mock"],
  64     python_requires=">=3.7",
  65     classifiers=[
  66         "Programming Language :: Python :: 3",
  67         "Programming Language :: Python :: 3.7",
  68         "Programming Language :: Python :: 3.8",
  69         "Programming Language :: Python :: 3.9",
  70         "Programming Language :: Python :: 3.10",
  71     ],
  72 )
  73
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -58,6 +58,7 @@
               "envs/classic_control/assets/*.png",
               "envs/toy_text/font/*.ttf",
               "envs/toy_text/img/*.png",
  +            "py.typed",
           ]
       },
       tests_require=["pytest", "mock"],
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -58,6 +58,7 @@\n             \"envs/classic_control/assets/*.png\",\n             \"envs/toy_text/font/*.ttf\",\n             \"envs/toy_text/img/*.png\",\n+            \"py.typed\",\n         ]\n     },\n     tests_require=[\"pytest\", \"mock\"],\n", "issue": "py.typed not bundled in release\nThe latest pypi package [gym==0.23.0](https://pypi.org/project/gym/0.23.0/) does not include `py.typed`, resulting in failed `mypy` checks.\r\n\r\nReproduce by `pip install gym` and noting the missing file or downloading the zip from pypi (zip on GH contains the file).\n", "before_files": [{"content": "import os.path\nimport sys\nimport itertools\n\nfrom setuptools import find_packages, setup\n\n# Don't import gym module here, since deps may not be installed\nsys.path.insert(0, os.path.join(os.path.dirname(__file__), \"gym\"))\nfrom version import VERSION\n\n# Environment-specific dependencies.\nextras = {\n    \"atari\": [\"ale-py~=0.7.4\"],\n    \"accept-rom-license\": [\"autorom[accept-rom-license]~=0.4.2\"],\n    \"box2d\": [\"box2d-py==2.3.5\", \"pygame==2.1.0\"],\n    \"classic_control\": [\"pygame==2.1.0\"],\n    \"mujoco\": [\"mujoco_py>=1.50, <2.0\"],\n    \"toy_text\": [\"pygame==2.1.0\", \"scipy>=1.4.1\"],\n    \"other\": [\"lz4>=3.1.0\", \"opencv-python>=3.0\"],\n}\n\n# Meta dependency groups.\nnomujoco_blacklist = set([\"mujoco\", \"accept-rom-license\", \"atari\"])\nnomujoco_groups = set(extras.keys()) - nomujoco_blacklist\n\nextras[\"nomujoco\"] = list(\n    itertools.chain.from_iterable(map(lambda group: extras[group], nomujoco_groups))\n)\n\n\nall_blacklist = set([\"accept-rom-license\"])\nall_groups = set(extras.keys()) - all_blacklist\n\nextras[\"all\"] = list(\n    itertools.chain.from_iterable(map(lambda group: extras[group], all_groups))\n)\n\nsetup(\n    name=\"gym\",\n    version=VERSION,\n    description=\"Gym: A universal API for reinforcement learning environments\",\n    url=\"https://www.gymlibrary.ml/\",\n    author=\"Gym Community\",\n    author_email=\"jkterry@umd.edu\",\n    license=\"MIT\",\n    packages=[package for package in find_packages() if package.startswith(\"gym\")],\n    zip_safe=False,\n    install_requires=[\n        \"numpy>=1.18.0\",\n        \"cloudpickle>=1.2.0\",\n        \"importlib_metadata>=4.10.0; python_version < '3.10'\",\n        \"gym_notices>=0.0.4\",\n    ],\n    extras_require=extras,\n    package_data={\n        \"gym\": [\n            \"envs/mujoco/assets/*.xml\",\n            \"envs/classic_control/assets/*.png\",\n            \"envs/toy_text/font/*.ttf\",\n            \"envs/toy_text/img/*.png\",\n        ]\n    },\n    tests_require=[\"pytest\", \"mock\"],\n    python_requires=\">=3.7\",\n    classifiers=[\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "import os.path\nimport sys\nimport itertools\n\nfrom setuptools import find_packages, setup\n\n# Don't import gym module here, since deps may not be installed\nsys.path.insert(0, os.path.join(os.path.dirname(__file__), \"gym\"))\nfrom version import VERSION\n\n# Environment-specific dependencies.\nextras = {\n    \"atari\": [\"ale-py~=0.7.4\"],\n    \"accept-rom-license\": [\"autorom[accept-rom-license]~=0.4.2\"],\n    \"box2d\": [\"box2d-py==2.3.5\", \"pygame==2.1.0\"],\n    \"classic_control\": [\"pygame==2.1.0\"],\n    \"mujoco\": [\"mujoco_py>=1.50, <2.0\"],\n    \"toy_text\": [\"pygame==2.1.0\", \"scipy>=1.4.1\"],\n    \"other\": [\"lz4>=3.1.0\", \"opencv-python>=3.0\"],\n}\n\n# Meta dependency groups.\nnomujoco_blacklist = set([\"mujoco\", \"accept-rom-license\", \"atari\"])\nnomujoco_groups = set(extras.keys()) - nomujoco_blacklist\n\nextras[\"nomujoco\"] = list(\n    itertools.chain.from_iterable(map(lambda group: extras[group], nomujoco_groups))\n)\n\n\nall_blacklist = set([\"accept-rom-license\"])\nall_groups = set(extras.keys()) - all_blacklist\n\nextras[\"all\"] = list(\n    itertools.chain.from_iterable(map(lambda group: extras[group], all_groups))\n)\n\nsetup(\n    name=\"gym\",\n    version=VERSION,\n    description=\"Gym: A universal API for reinforcement learning environments\",\n    url=\"https://www.gymlibrary.ml/\",\n    author=\"Gym Community\",\n    author_email=\"jkterry@umd.edu\",\n    license=\"MIT\",\n    packages=[package for package in find_packages() if package.startswith(\"gym\")],\n    zip_safe=False,\n    install_requires=[\n        \"numpy>=1.18.0\",\n        \"cloudpickle>=1.2.0\",\n        \"importlib_metadata>=4.10.0; python_version < '3.10'\",\n        \"gym_notices>=0.0.4\",\n    ],\n    extras_require=extras,\n    package_data={\n        \"gym\": [\n            \"envs/mujoco/assets/*.xml\",\n            \"envs/classic_control/assets/*.png\",\n            \"envs/toy_text/font/*.ttf\",\n            \"envs/toy_text/img/*.png\",\n            \"py.typed\",\n        ]\n    },\n    tests_require=[\"pytest\", \"mock\"],\n    python_requires=\">=3.7\",\n    classifiers=[\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n    ],\n)\n", "path": "setup.py"}]}