>>> import azure.core
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.11/site-packages/azure/core/__init__.py", line 30, in <module>
from ._pipeline_client import PipelineClient
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/azure/core/_pipeline_client.py", line 30, in <module>
from .pipeline import Pipeline
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/azure/core/pipeline/__init__.py", line 178, in <module>
from ._base import Pipeline # pylint: disable=wrong-import-position
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/azure/core/pipeline/_base.py", line 46, in <module>
class _SansIOHTTPPolicyRunner(HTTPPolicy, Generic[HTTPRequestType, HTTPResponseType]):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen abc>", line 106, in __new__
File "/usr/local/lib/python3.11/typing.py", line 1869, in __init_subclass__
raise TypeError(f"Some type variables ({s_vars}) are"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Some type variables (~HTTPRequestType, ~HTTPResponseType) are not listed in Generic[~HTTPRequestType, ~HTTPResponseType]
azure-core1.23.1Fedora 373.11.0b3Describe the bug
Fedora 37 has just updated to Python 3.11.0b3 to prepare for the Python 3.11 final release. However, this has caused issues in
azure.corewith typed variables:To Reproduce
Steps to reproduce the behavior:
podman run --rm -it --pull always docker.io/library/python:3.11.0b3 bashpip install azure-corepythonand typeimport azure.coreExpected behavior
I would expect the import of
azure.coreto work properly as it does under Python 3.10.