From ea833cecb26b01e1e45e5d84aba19bb4c349c285 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 6 Sep 2024 11:38:44 +0200 Subject: [PATCH] chore: add py.typed file (#245) --- pytest_playwright/py.typed | 0 tests/test_playwright.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 pytest_playwright/py.typed diff --git a/pytest_playwright/py.typed b/pytest_playwright/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_playwright.py b/tests/test_playwright.py index ee6ab93..0018589 100644 --- a/tests/test_playwright.py +++ b/tests/test_playwright.py @@ -775,8 +775,9 @@ def test_artifact_collection_should_work_for_manually_created_contexts_keep_open testdir.makepyfile( """ import pytest + from pytest_playwright.pytest_playwright import CreateContextCallback - def test_artifact_collection(browser, page, new_context): + def test_artifact_collection(browser, page, new_context: CreateContextCallback): page.goto("data:text/html,
hello
") other_context = new_context()