From 1a9c975fd65b3ff19f80d127dfbedecb995f4b90 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sun, 6 Sep 2026 21:53:34 +0300 Subject: [PATCH] docs: document that expose() with no groups raises TypeError --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 744e3d7..9e48fe0 100644 --- a/README.md +++ b/README.md @@ -134,8 +134,9 @@ type or a Provider; the generated fixture resolves it through Walk each ``Group`` subclass in ``groups`` and inject one pytest fixture per Provider class attribute into the caller's module. Fixture names equal the class-attribute names. Non-Provider class attributes are skipped. A duplicate -attribute name across groups raises ``ValueError``. Pass ``module=`` -explicitly when stack introspection cannot identify the caller. +attribute name across groups raises ``ValueError``, and calling it with no +groups raises ``TypeError``. Pass ``module=`` explicitly when stack +introspection cannot identify the caller. ## 📦 [PyPI](https://pypi.org/project/modern-di-pytest)