python-filewrap 0.0.7__tar.gz → 0.0.7.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_filewrap-0.0.7 → python_filewrap-0.0.7.1}/PKG-INFO +1 -1
- {python_filewrap-0.0.7 → python_filewrap-0.0.7.1}/filewrap/__init__.py +3 -1
- {python_filewrap-0.0.7 → python_filewrap-0.0.7.1}/pyproject.toml +1 -1
- {python_filewrap-0.0.7 → python_filewrap-0.0.7.1}/LICENSE +0 -0
- {python_filewrap-0.0.7 → python_filewrap-0.0.7.1}/filewrap/py.typed +0 -0
- {python_filewrap-0.0.7 → python_filewrap-0.0.7.1}/readme.md +0 -0
|
@@ -21,7 +21,7 @@ from itertools import chain
|
|
|
21
21
|
from collections.abc import AsyncIterator, Callable, Iterator
|
|
22
22
|
from shutil import COPY_BUFSIZE # type: ignore
|
|
23
23
|
from threading import Lock
|
|
24
|
-
from typing import Any, Protocol, TypeVar
|
|
24
|
+
from typing import runtime_checkable, Any, Protocol, TypeVar
|
|
25
25
|
|
|
26
26
|
try:
|
|
27
27
|
from collections.abc import Buffer # type: ignore
|
|
@@ -35,10 +35,12 @@ _T_co = TypeVar("_T_co", covariant=True)
|
|
|
35
35
|
_T_contra = TypeVar("_T_contra", contravariant=True)
|
|
36
36
|
|
|
37
37
|
|
|
38
|
+
@runtime_checkable
|
|
38
39
|
class SupportsRead(Protocol[_T_co]):
|
|
39
40
|
def read(self, __length: int = ...) -> _T_co: ...
|
|
40
41
|
|
|
41
42
|
|
|
43
|
+
@runtime_checkable
|
|
42
44
|
class SupportsWrite(Protocol[_T_contra]):
|
|
43
45
|
def write(self, __s: _T_contra) -> object: ...
|
|
44
46
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|