Python 3.14 incompatibility related to some typing objects being immutable #995
-
I've been starting some pre-release testing with Python 3.14.0a6, and
Catching the AttributeError fixes the problem in my (limited) testing:
If I make this modification manually, the import succeeds; and my usage of httpcore (by way of briefcase invoking httpx) succeeds. The underlying issue is that in 3.14, the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
This makes sense to me, but we should probably understand why that code exists in the first place. It was last touched in #420 but existed previously and was introduced in b0cfafd (issue #148) with the original motivation in encode/httpx#1155. So... seems fine to skip this where it's not applicable. I wonder how the |
Beta Was this translation helpful? Give feedback.
-
(Just adding from the now deleted #994, this issue is new in |
Beta Was this translation helpful? Give feedback.
-
Do you guys have a plan for this to be included in an upcoming release? If so, any ETA? If not, are there other things being considered? My vote would be to not modify code not belonging to this project at runtime. What other things might break because of this bit of meta-programming? BTW - I applied the patch mentioned above locally and that is what I needed to be able to install PDM with python3.14.0a6 . Thanks. |
Beta Was this translation helpful? Give feedback.
-
urllib3 uses httpcore for proxy tests, and tests with Python 3.14 fail because of this issue urllib3/urllib3#3576, we have a $100 bounty for fixing our CI |
Beta Was this translation helpful? Give feedback.
Please see PR #1005.