diff --git a/docs/source/changes.rst b/docs/source/changes.rst index 006f2fb5e..d018da1c1 100644 --- a/docs/source/changes.rst +++ b/docs/source/changes.rst @@ -11,7 +11,7 @@ chronological order. All previous releases should still be available on pip. .. _v0.12.0: ---------------------- -0.12.0rc8 - 2023-11-25 +0.12.0rc9 - 2023-11-26 ---------------------- @@ -27,7 +27,7 @@ Here is a stripped-down example. :caption: Basic structure for adding custom auto-config support for a type. from hydra_zen import BuildsFn - from hydra_zen.typing import SupportedPrimitive + from hydra_zen.typing import CustomConfigType # We want builds/just/make_config to be able to automatically # configure instances of `SomeType` @@ -37,7 +37,7 @@ Here is a stripped-down example. # The type parameter provided to `BuildsFn[...]` updates the type # annotations of the config-creation functions so that type-checkers # know that `SomeType` is now supported. - class CustomBuilds(BuildsFn[SomeType | SupportedPrimitive]): + class CustomBuilds(BuildsFn[CustomConfigType[SomeType]]): """ - To customize type-refinement support, override `_sanitized_type`. - To customize auto-config support, override `_make_hydra_compatible`. diff --git a/src/hydra_zen/structured_configs/_implementations.py b/src/hydra_zen/structured_configs/_implementations.py index 00af0e36d..2aca41e72 100644 --- a/src/hydra_zen/structured_configs/_implementations.py +++ b/src/hydra_zen/structured_configs/_implementations.py @@ -3421,8 +3421,8 @@ def kwargs_of( Excluding the first parameter from the target's signature: - >>> Config = kwargs_of(lambda *, x, y: None, zen_exclude=[0]) - >>> signature(Config) + >>> Config = kwargs_of(lambda *, x, y: None, zen_exclude=(0,)) + >>> signature(Config) # note: type checkers sees that x is removed as well None> >>> instantiate(Config(y=88)) {'y': 88}