mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
mark typing
This commit is contained in:
1 parent
d8276943d7
commit
f1282f8553
1 file changed
-2
Vendored
-2
@@ -4359,7 +4359,6 @@ class ProtocolTests(BaseTestCase):
|
||||
self.assertNotIsSubclass(C, ReleasableBuffer)
|
||||
self.assertNotIsInstance(C(), ReleasableBuffer)
|
||||
|
||||
@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: module 'io' has no attribute 'Reader'
|
||||
def test_io_reader_protocol_allowed(self):
|
||||
@runtime_checkable
|
||||
class CustomReader(io.Reader[bytes], Protocol):
|
||||
@@ -4377,7 +4376,6 @@ class ProtocolTests(BaseTestCase):
|
||||
self.assertNotIsSubclass(A, CustomReader)
|
||||
self.assertNotIsInstance(A(), CustomReader)
|
||||
|
||||
@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: module 'io' has no attribute 'Writer'
|
||||
def test_io_writer_protocol_allowed(self):
|
||||
@runtime_checkable
|
||||
class CustomWriter(io.Writer[bytes], Protocol):
|
||||
|
||||
Reference in new issue
Block a user