Skip to content

Commit

Permalink
Add dynamic extension note
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Hayes <jacob.r.hayes@gmail.com>
  • Loading branch information
JacobHayes committed Jul 19, 2022
1 parent 1c537af commit 3fd17b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/arti/types/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ def test_TypeSystem_extends(Int32Adapter: type[TypeAdapter]) -> None:
base = TypeSystem(key="base")
extended = TypeSystem(key="extended", extends=(base,))

# NOTE: Even adapters registered to `base` after `extended` is created should be available.
base.register_adapter(Int32Adapter)

assert isinstance(extended.to_artigraph(MyInt, hints={}), Int32)
Expand Down

0 comments on commit 3fd17b6

Please sign in to comment.