extract Sequence
as PyType
?
#2693
Unanswered
samuelcolvin
asked this question in
Questions
Replies: 2 comments
-
OK, I assume |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've opened #2694 to track this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to do an
is_instance
check withtyping.Sequence
, howeverIs failing with
TypeError: '_SpecialGenericAlias' object cannot be converted to 'PyType'
.Is this a fundamental limitation of the python C API, or something that pyo3 could support?
Mostly for my record, here's the failing test from pydantic-core:
Fails when creating the
SchemaValidator
with:Beta Was this translation helpful? Give feedback.
All reactions