We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pandas.Timestamp is a sub-class of datetime, but as an annotation will cause TypeError:
pandas.Timestamp
datetime
import typic from datetime import datetime import pandas as pd issubclass(pd.Timestamp, datetime) # True @typic.klass class Foo: dt: pd.Timestamp # TypeError: __init__() got an unexpected keyword argument 'additionalProperties'
This is OK at version 2.0.5. Personally, I think pandas.Timestamp is more convenient than builtin datetime in data analysis.
2.0.5
The text was updated successfully, but these errors were encountered:
This is a regression due to expanding awareness of subtypes. Should have a fix shortly.
Sorry, something went wrong.
Bugfix: Unify handling of parent search for type mappings (#70)
a633ed1
This has been resolved in v2.0.9
Thanks.
seandstewart
Successfully merging a pull request may close this issue.
Description
pandas.Timestamp
is a sub-class ofdatetime
, but as an annotation will cause TypeError:This is OK at version
2.0.5
.Personally, I think
pandas.Timestamp
is more convenient than builtindatetime
in data analysis.The text was updated successfully, but these errors were encountered: