I update pandas from 1.2.3 to 1.3.3, it gives weird transmuted result when annotated pandas.DataFrame or pandas.Series.
import typic, pandas as pd
proto = typic.protocol(pd.DataFrame) # typic\util.py:479: UserWarning: Couldn't evaluate type ForwardRef('typing.Union[weakref.ReferenceType[NDFrame],None]'): 'type' object is not subscriptable warnings.warn(f"Couldn't evaluate type {value!r}: {e}")
proto.transmute(1) # it should raise ValueError, but gives the following weird result.
Description
I update
pandas
from1.2.3
to1.3.3
, it gives weird transmuted result when annotatedpandas.DataFrame
orpandas.Series
.