We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
feature: Python 3.11 support
### Feature scope

Other

### Description

Python 3.11.0 is planned to be officially released as of 2022-10-24. We should add it to our test matrix, and build Docker images for it for each release.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `noxfile.py`
Content:
```
1 """Nox configuration."""
2 
3 from __future__ import annotations
4 
5 import os
6 import sys
7 from pathlib import Path
8 from random import randint
9 from textwrap import dedent
10 
11 try:
12     from nox_poetry import Session
13     from nox_poetry import session as nox_session
14 except ImportError:
15     message = f"""\
16     Nox failed to import the 'nox-poetry' package.
17     Please install it using the following command:
18     {sys.executable} -m pip install nox-poetry"""
19     raise SystemExit(dedent(message)) from None
20 
21 
22 package = "meltano"
23 python_versions = ["3.10", "3.9", "3.8", "3.7"]
24 main_python_version = "3.9"
25 locations = "src", "tests", "noxfile.py"
26 
27 
28 @nox_session(python=python_versions)
29 def tests(session: Session) -> None:
30     """Execute pytest tests and compute coverage.
31 
32     Args:
33         session: Nox session.
34     """
35     backend_db = os.environ.get("PYTEST_BACKEND", "sqlite")
36 
37     if backend_db == "mssql":
38         session.install(".[mssql,azure,gcs,s3]")
39 
40     else:
41         session.install(".[azure,gcs,s3]")
42 
43     session.install(
44         "colorama",  # colored output in Windows
45         "freezegun",
46         "mock",
47         "pytest",
48         "pytest-asyncio",
49         "pytest-cov",
50         "pytest-docker",
51         "pytest-order",
52         "pytest-randomly",
53         "pytest-xdist",
54         "requests-mock",
55     )
56 
57     try:
58         session.run(
59             "pytest",
60             f"--randomly-seed={randint(0, 2**32-1)}",  # noqa: S311, WPS432
61             *session.posargs,
62             env={"NOX_CURRENT_SESSION": "tests"},
63         )
64     finally:
65         if session.interactive:
66             session.notify("coverage", posargs=[])
67 
68 
69 @nox_session(python=main_python_version)
70 def coverage(session: Session) -> None:
71     """Upload coverage data.
72 
73     Args:
74         session: Nox session.
75     """
76     args = session.posargs or ["report"]
77 
78     session.install("coverage[toml]")
79 
80     if not session.posargs and any(Path().glob(".coverage.*")):
81         session.run("coverage", "combine")
82 
83     session.run("coverage", *args)
84 
85 
86 @nox_session(python=main_python_version)
87 def mypy(session: Session) -> None:
88     """Run mypy type checking.
89 
90     Args:
91         session: Nox session.
92     """
93     args = session.posargs or ["src/meltano", "--exclude", "src/meltano/migrations/"]
94 
95     session.install(".")
96     session.install(
97         "mypy",
98         "sqlalchemy2-stubs",
99         "types-croniter",
100         "types-psutil",
101         "types-requests",
102         "boto3-stubs[essential]",
103     )
104     session.run("mypy", *args)
105
```
--- 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()

```

diff --git a/noxfile.py b/noxfile.py
--- a/noxfile.py
+++ b/noxfile.py
@@ -20,7 +20,7 @@
 
 
 package = "meltano"
-python_versions = ["3.10", "3.9", "3.8", "3.7"]
+python_versions = ["3.11", "3.10", "3.9", "3.8", "3.7"]
 main_python_version = "3.9"
 locations = "src", "tests", "noxfile.py"

{"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -20,7 +20,7 @@\n \n \n package = \"meltano\"\n-python_versions = [\"3.10\", \"3.9\", \"3.8\", \"3.7\"]\n+python_versions = [\"3.11\", \"3.10\", \"3.9\", \"3.8\", \"3.7\"]\n main_python_version = \"3.9\"\n locations = \"src\", \"tests\", \"noxfile.py\"\n", "issue": "feature: Python 3.11 support\n### Feature scope\n\nOther\n\n### Description\n\nPython 3.11.0 is planned to be officially released as of 2022-10-24. We should add it to our test matrix, and build Docker images for it for each release.\n", "before_files": [{"content": "\"\"\"Nox configuration.\"\"\"\n\nfrom __future__ import annotations\n\nimport os\nimport sys\nfrom pathlib import Path\nfrom random import randint\nfrom textwrap import dedent\n\ntry:\n    from nox_poetry import Session\n    from nox_poetry import session as nox_session\nexcept ImportError:\n    message = f\"\"\"\\\n    Nox failed to import the 'nox-poetry' package.\n    Please install it using the following command:\n    {sys.executable} -m pip install nox-poetry\"\"\"\n    raise SystemExit(dedent(message)) from None\n\n\npackage = \"meltano\"\npython_versions = [\"3.10\", \"3.9\", \"3.8\", \"3.7\"]\nmain_python_version = \"3.9\"\nlocations = \"src\", \"tests\", \"noxfile.py\"\n\n\n@nox_session(python=python_versions)\ndef tests(session: Session) -> None:\n    \"\"\"Execute pytest tests and compute coverage.\n\n    Args:\n        session: Nox session.\n    \"\"\"\n    backend_db = os.environ.get(\"PYTEST_BACKEND\", \"sqlite\")\n\n    if backend_db == \"mssql\":\n        session.install(\".[mssql,azure,gcs,s3]\")\n\n    else:\n        session.install(\".[azure,gcs,s3]\")\n\n    session.install(\n        \"colorama\",  # colored output in Windows\n        \"freezegun\",\n        \"mock\",\n        \"pytest\",\n        \"pytest-asyncio\",\n        \"pytest-cov\",\n        \"pytest-docker\",\n        \"pytest-order\",\n        \"pytest-randomly\",\n        \"pytest-xdist\",\n        \"requests-mock\",\n    )\n\n    try:\n        session.run(\n            \"pytest\",\n            f\"--randomly-seed={randint(0, 2**32-1)}\",  # noqa: S311, WPS432\n            *session.posargs,\n            env={\"NOX_CURRENT_SESSION\": \"tests\"},\n        )\n    finally:\n        if session.interactive:\n            session.notify(\"coverage\", posargs=[])\n\n\n@nox_session(python=main_python_version)\ndef coverage(session: Session) -> None:\n    \"\"\"Upload coverage data.\n\n    Args:\n        session: Nox session.\n    \"\"\"\n    args = session.posargs or [\"report\"]\n\n    session.install(\"coverage[toml]\")\n\n    if not session.posargs and any(Path().glob(\".coverage.*\")):\n        session.run(\"coverage\", \"combine\")\n\n    session.run(\"coverage\", *args)\n\n\n@nox_session(python=main_python_version)\ndef mypy(session: Session) -> None:\n    \"\"\"Run mypy type checking.\n\n    Args:\n        session: Nox session.\n    \"\"\"\n    args = session.posargs or [\"src/meltano\", \"--exclude\", \"src/meltano/migrations/\"]\n\n    session.install(\".\")\n    session.install(\n        \"mypy\",\n        \"sqlalchemy2-stubs\",\n        \"types-croniter\",\n        \"types-psutil\",\n        \"types-requests\",\n        \"boto3-stubs[essential]\",\n    )\n    session.run(\"mypy\", *args)\n", "path": "noxfile.py"}], "after_files": [{"content": "\"\"\"Nox configuration.\"\"\"\n\nfrom __future__ import annotations\n\nimport os\nimport sys\nfrom pathlib import Path\nfrom random import randint\nfrom textwrap import dedent\n\ntry:\n    from nox_poetry import Session\n    from nox_poetry import session as nox_session\nexcept ImportError:\n    message = f\"\"\"\\\n    Nox failed to import the 'nox-poetry' package.\n    Please install it using the following command:\n    {sys.executable} -m pip install nox-poetry\"\"\"\n    raise SystemExit(dedent(message)) from None\n\n\npackage = \"meltano\"\npython_versions = [\"3.11\", \"3.10\", \"3.9\", \"3.8\", \"3.7\"]\nmain_python_version = \"3.9\"\nlocations = \"src\", \"tests\", \"noxfile.py\"\n\n\n@nox_session(python=python_versions)\ndef tests(session: Session) -> None:\n    \"\"\"Execute pytest tests and compute coverage.\n\n    Args:\n        session: Nox session.\n    \"\"\"\n    backend_db = os.environ.get(\"PYTEST_BACKEND\", \"sqlite\")\n\n    if backend_db == \"mssql\":\n        session.install(\".[mssql,azure,gcs,s3]\")\n\n    else:\n        session.install(\".[azure,gcs,s3]\")\n\n    session.install(\n        \"colorama\",  # colored output in Windows\n        \"freezegun\",\n        \"mock\",\n        \"pytest\",\n        \"pytest-asyncio\",\n        \"pytest-cov\",\n        \"pytest-docker\",\n        \"pytest-order\",\n        \"pytest-randomly\",\n        \"pytest-xdist\",\n        \"requests-mock\",\n    )\n\n    try:\n        session.run(\n            \"pytest\",\n            f\"--randomly-seed={randint(0, 2**32-1)}\",  # noqa: S311, WPS432\n            *session.posargs,\n            env={\"NOX_CURRENT_SESSION\": \"tests\"},\n        )\n    finally:\n        if session.interactive:\n            session.notify(\"coverage\", posargs=[])\n\n\n@nox_session(python=main_python_version)\ndef coverage(session: Session) -> None:\n    \"\"\"Upload coverage data.\n\n    Args:\n        session: Nox session.\n    \"\"\"\n    args = session.posargs or [\"report\"]\n\n    session.install(\"coverage[toml]\")\n\n    if not session.posargs and any(Path().glob(\".coverage.*\")):\n        session.run(\"coverage\", \"combine\")\n\n    session.run(\"coverage\", *args)\n\n\n@nox_session(python=main_python_version)\ndef mypy(session: Session) -> None:\n    \"\"\"Run mypy type checking.\n\n    Args:\n        session: Nox session.\n    \"\"\"\n    args = session.posargs or [\"src/meltano\", \"--exclude\", \"src/meltano/migrations/\"]\n\n    session.install(\".\")\n    session.install(\n        \"mypy\",\n        \"sqlalchemy2-stubs\",\n        \"types-croniter\",\n        \"types-psutil\",\n        \"types-requests\",\n        \"boto3-stubs[essential]\",\n    )\n    session.run(\"mypy\", *args)\n", "path": "noxfile.py"}]}