From 4b455881312a2a79c8f76c010611f9570f3f7746 Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Thu, 21 Mar 2024 17:22:18 +1100 Subject: [PATCH] chore(examples): ignore untyped import errors Signed-off-by: JP-Ellis --- examples/tests/test_00_consumer.py | 2 +- examples/tests/test_01_provider_fastapi.py | 2 +- examples/tests/test_01_provider_flask.py | 2 +- examples/tests/test_02_message_consumer.py | 2 +- examples/tests/test_03_message_provider.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/tests/test_00_consumer.py b/examples/tests/test_00_consumer.py index aa0b84bb8c..a63d75ddd5 100644 --- a/examples/tests/test_00_consumer.py +++ b/examples/tests/test_00_consumer.py @@ -24,7 +24,7 @@ from yarl import URL from examples.src.consumer import User, UserConsumer -from pact import Consumer, Format, Like, Provider +from pact import Consumer, Format, Like, Provider # type: ignore[import-untyped] if TYPE_CHECKING: from pathlib import Path diff --git a/examples/tests/test_01_provider_fastapi.py b/examples/tests/test_01_provider_fastapi.py index 2c134f723b..74417b2aac 100644 --- a/examples/tests/test_01_provider_fastapi.py +++ b/examples/tests/test_01_provider_fastapi.py @@ -34,7 +34,7 @@ from yarl import URL from examples.src.fastapi import app -from pact import Verifier +from pact import Verifier # type: ignore[import-untyped] PROVIDER_URL = URL("http://127.0.0.1:8080") diff --git a/examples/tests/test_01_provider_flask.py b/examples/tests/test_01_provider_flask.py index bc3d820136..298b27041a 100644 --- a/examples/tests/test_01_provider_flask.py +++ b/examples/tests/test_01_provider_flask.py @@ -33,7 +33,7 @@ from yarl import URL from examples.src.flask import app -from pact import Verifier +from pact import Verifier # type: ignore[import-untyped] PROVIDER_URL = URL("http://127.0.0.1:8080") diff --git a/examples/tests/test_02_message_consumer.py b/examples/tests/test_02_message_consumer.py index 0603b4b964..4d79b2bfcf 100644 --- a/examples/tests/test_02_message_consumer.py +++ b/examples/tests/test_02_message_consumer.py @@ -37,7 +37,7 @@ import pytest from examples.src.message import Handler -from pact import MessageConsumer, MessagePact, Provider +from pact import MessageConsumer, MessagePact, Provider # type: ignore[import-untyped] if TYPE_CHECKING: from pathlib import Path diff --git a/examples/tests/test_03_message_provider.py b/examples/tests/test_03_message_provider.py index 581bd2391c..3e635965c6 100644 --- a/examples/tests/test_03_message_provider.py +++ b/examples/tests/test_03_message_provider.py @@ -30,7 +30,7 @@ from flask import Flask -from pact import MessageProvider +from pact import MessageProvider # type: ignore[import-untyped] if TYPE_CHECKING: from yarl import URL