Skip to content

Commit 2f41d11

Browse files
committed
Drop type resolution workaround thanks to cattrs fix
python-attrs/cattrs#662
1 parent 911571a commit 2f41d11

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

baybe/surrogates/composite.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from copy import deepcopy
77
from typing import TYPE_CHECKING, Any, Generic, Protocol, TypeVar
88

9-
import attrs
109
import pandas as pd
1110
from attrs import define, field
1211
from typing_extensions import override
@@ -211,6 +210,3 @@ def _unstructure_surrogate_getter(obj: _SurrogateGetter) -> dict:
211210
converter.register_unstructure_hook_func(
212211
lambda t: t is _SurrogateGetter, _unstructure_surrogate_getter
213212
)
214-
215-
# TODO: https://github.com/python-attrs/cattrs/issues/661
216-
attrs.resolve_types(_ReplicationMapping)

0 commit comments

Comments
 (0)