pytest-plugin-utils 0.1.1__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pytest-plugin-utils
3
- Version: 0.1.1
3
+ Version: 0.2.0
4
4
  Summary: Reusable configuration and artifact utilities for building pytest plugins
5
5
  Keywords: pytest,plugin,testing,utilities
6
6
  Author: Michael Bianco
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pytest-plugin-utils"
3
- version = "0.1.1"
3
+ version = "0.2.0"
4
4
  description = "Reusable configuration and artifact utilities for building pytest plugins"
5
5
  keywords = ["pytest", "plugin", "testing", "utilities"]
6
6
  readme = "README.md"
@@ -30,7 +30,7 @@ dev = [
30
30
  ]
31
31
 
32
32
  [tool.pyright]
33
- exclude = ["examples/", "playground/", "tmp/", ".venv/", "tests/"]
33
+ exclude = ["examples/", "playground/", "tmp/", ".venv/"]
34
34
 
35
35
  [tool.pytest.ini_options]
36
36
  addopts = "--cov --cov-report=term-missing --cov-report=html:tmp/htmlcov"
@@ -203,9 +203,21 @@ def _smart_cast[T](value: t.Any, type_hint: type[T] | None) -> T | t.Any:
203
203
  ) from e
204
204
 
205
205
 
206
+ @t.overload
206
207
  def get_pytest_option[T](
207
- namespace: str, config: Config, key: str, *, type_hint: type[T] | None = None
208
- ) -> T | t.Any | None:
208
+ namespace: str, config: Config, key: str, *, type_hint: type[T]
209
+ ) -> T | None: ...
210
+
211
+
212
+ @t.overload
213
+ def get_pytest_option(
214
+ namespace: str, config: Config, key: str, *, type_hint: None = None
215
+ ) -> t.Any | None: ...
216
+
217
+
218
+ def get_pytest_option(
219
+ namespace: str, config: Config, key: str, *, type_hint: t.Any | None = None
220
+ ) -> t.Any | None:
209
221
  """
210
222
  Retrieve a configuration value from runtime overrides, CLI, or INI files.
211
223