From 09e7b90a0cd41ce211f66e5e192c3ac6ecdd8605 Mon Sep 17 00:00:00 2001 From: Sugato Ray <10201242+sugatoray@users.noreply.github.com> Date: Sat, 17 Jan 2026 20:38:00 -0500 Subject: [PATCH 1/2] add py.typed to support typing --- python/copilot/py.typed | 1 + 1 file changed, 1 insertion(+) create mode 100644 python/copilot/py.typed diff --git a/python/copilot/py.typed b/python/copilot/py.typed new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/python/copilot/py.typed @@ -0,0 +1 @@ + From 2ef27ea69606c5d4709b21ce811020d54adae1e9 Mon Sep 17 00:00:00 2001 From: Sugato Ray <10201242+sugatoray@users.noreply.github.com> Date: Sat, 17 Jan 2026 21:00:12 -0500 Subject: [PATCH 2/2] simplify path manipulation --- python/e2e/testharness/context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/e2e/testharness/context.py b/python/e2e/testharness/context.py index adb2f88..3370786 100644 --- a/python/e2e/testharness/context.py +++ b/python/e2e/testharness/context.py @@ -24,7 +24,7 @@ def get_cli_path() -> str: return cli_path # Look for CLI in sibling nodejs directory's node_modules - base_path = Path(__file__).parent.parent.parent.parent + base_path = Path(__file__).parents[3] # equivalent to: path.parent.parent.parent.parent full_path = base_path / "nodejs" / "node_modules" / "@github" / "copilot" / "index.js" if full_path.exists(): return str(full_path.resolve()) @@ -35,7 +35,7 @@ def get_cli_path() -> str: CLI_PATH = get_cli_path() -SNAPSHOTS_DIR = Path(__file__).parent.parent.parent.parent / "test" / "snapshots" +SNAPSHOTS_DIR = Path(__file__).parents[3] / "test" / "snapshots" class E2ETestContext: