Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
rsokl committed Nov 27, 2023
1 parent a652fd8 commit 20f4cb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/source/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------


Expand All @@ -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`
Expand All @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions src/hydra_zen/structured_configs/_implementations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
<Signature (y: Any) -> None>
>>> instantiate(Config(y=88))
{'y': 88}
Expand Down

0 comments on commit 20f4cb6

Please sign in to comment.