diff --git a/pyproject.toml b/pyproject.toml
index a39e08cf8781309436342a13d12f0558ef718505..f245ce9364a8b7fad41b52049671e299e5dd23db 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -96,7 +96,7 @@ enable_error_code = "ignore-without-code"
 strict = true
 
 [[tool.mypy.overrides]]
-module = ["setuptools.*", "h5py.*", "pooch.*", "hypothesis.*"]
+module = ["setuptools.*", "h5py.*", "pooch.*", "hypothesis.*", "pytest.*"]
 ignore_missing_imports = true
 
 [tool.semantic_release]