Comments (2)
A couple of failures on 3.13, we probably just need to update some tests.
======================================================================
FAIL: test_generic_protocols_special_from_protocol (test_typing_extensions.ProtocolTests.test_generic_protocols_special_from_protocol)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/typing_extensions/typing_extensions/src/test_typing_extensions.py", line 3061, in test_generic_protocols_special_from_protocol
self.assertEqual(typing_extensions._get_protocol_attrs(PR), {'x'})
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Items in the first set but not the second:
'__non_callable_proto_members__'
======================================================================
FAIL: test_protocol_issubclass_error_message (test_typing_extensions.ProtocolTests.test_protocol_issubclass_error_message)
----------------------------------------------------------------------
TypeError: Instance and class checks can only be used with @runtime_checkable protocols
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/runner/work/typing_extensions/typing_extensions/src/test_typing_extensions.py", line [34](https://github.com/python/typing_extensions/actions/runs/7591493329/job/20679618345#step:4:35)71, in test_protocol_issubclass_error_message
with self.assertRaisesRegex(TypeError, re.escape(expected_error_message)):
issubclass(int, Vec2D)
AssertionError: "Protocols\ with\ non\-method\ members\ don't\ support\ issubclass\(\)\.\ Non\-method\ members:\ 'x',\ 'y'\." does not match "Instance and class checks can only be used with @runtime_checkable protocols"
from typing_extensions.
Oh, we need to backport python/cpython@ed6ea3e. I'll try and get to that today.
from typing_extensions.
Related Issues (20)
- Different results in Python 3.12.1 vs Python 3.12.2 HOT 3
- Third-party tests failed on Fri Feb 16 2024 HOT 1
- Release 4.10.0 planning HOT 2
- Third-party tests failed on Sat Feb 17 2024 HOT 1
- Third-party tests failed on Sun Feb 18 2024 HOT 2
- Documentation does not work with intersphinx (missing module name) HOT 3
- Third-party tests failed on Fri Feb 23 2024 HOT 1
- Add tag for 4.10.0 release HOT 2
- Python 3.13a4: ``_Py_atomic_load_ssize_relaxed``: identifier not found HOT 2
- Third-party tests failed on Mon Mar 04 2024 HOT 4
- Third-party tests failed on Thu Mar 07 2024 HOT 1
- Third-party tests failed on Wed Mar 13 2024 HOT 1
- Daily tests failed on Thu Mar 14 2024 HOT 1
- Release 4.11.0 planning HOT 5
- Expected no type arguments for class "ReadOnly", Python <= 3.11 HOT 2
- Identity checks of `Literal` objects inconsistent between Python <3.10 and 3.10<= HOT 1
- Third-party tests failed on Mon Apr 08 2024 HOT 2
- ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' HOT 3
- Unit tests fails on Python 3.13 for 4.11.0 HOT 2
- `AttributeError` if you mix `typing.Protocol` with `typing_extensions.runtime_checkable` on py312+ HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typing_extensions.