You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def my_test():
@frozen
class A(Generic[T]):
a: int
b: T
@frozen
class B:
pass
cattrs.structure({"a": 1, "b": []}, A[Sequence[B]])
=> Syntax error
generated function name is: structure_A_typing_Sequence___main___my_test_<locals>_B_ name = re.sub(r"[\[\.\] ,]", "_", name) probably needs to have <> added to make it work :)
The text was updated successfully, but these errors were encountered:
Description
generated function name is:
structure_A_typing_Sequence___main___my_test_<locals>_B_
name = re.sub(r"[\[\.\] ,]", "_", name)
probably needs to have<>
added to make it work :)The text was updated successfully, but these errors were encountered: