Qiskit / qiskit-ibm-runtime

IBM Client for Qiskit Runtime
https://docs.quantum.ibm.com/api/qiskit-ibm-runtime
Apache License 2.0
161 stars 157 forks source link

Hotfix CI by pinning Pydantic to <2.10 #2049

Closed Eric-Arellano closed 1 week ago

Eric-Arellano commented 1 week ago

This is to fix a CI regression that appeared once Pydantic 2.10 was released with the Sphinx build:

WARNING: Failed guarded type import with ModuleNotFoundError("No module named '_typeshed'")
WARNING: Cannot resolve forward reference in type annotations of "qiskit_ibm_runtime.options.DynamicalDecouplingOptions": name 'PydanticDataclass' is not defined
WARNING: Cannot resolve forward reference in type annotations of "qiskit_ibm_runtime.options.EnvironmentOptions": name 'PydanticDataclass' is not defined
WARNING: Cannot resolve forward reference in type annotations of "qiskit_ibm_runtime.options.EstimatorOptions": name 'PydanticDataclass' is not defined
WARNING: Cannot resolve forward reference in type annotations of "qiskit_ibm_runtime.options.ExecutionOptionsV2": name 'PydanticDataclass' is not defined
WARNING: Cannot resolve forward reference in type annotations of "qiskit_ibm_runtime.options.LayerNoiseLearningOptions": name 'PydanticDataclass' is not defined