Closed kacky24 closed 3 years ago
thanks for pointing this out @kacky24! https://github.com/pandera-dev/pandera/pull/510 should fix it
Thank you!
@kacky24 this'll be available in the next bugfix release 0.6.5
in the mean time you can do a dev install
Describe the bug A clear and concise description of what the bug is.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Expected behavior
A clear and concise description of what you expected to happen.
This is the error message.
https://github.com/pandera-dev/pandera/blob/a0813b7d85c5564fa98554196d459477ca2d272f/pandera/typing.py#L118
annotation_info.origin
is generated inannotation_info._parse_annotation()
. And when decorated func has args withtyping.Literal
,annotation_info.origin
seems to betyping.Literal
. This is not class, so the error occurs at typing.py#L116. https://github.com/pandera-dev/pandera/blob/a0813b7d85c5564fa98554196d459477ca2d272f/pandera/typing.py#L116Additional context
Add any other context about the problem here.