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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-filewrap
3
- Version: 0.0.7
3
+ Version: 0.0.7.1
4
4
  Summary: Python file wrappers.
5
5
  Home-page: https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-filewrap
6
6
  License: MIT
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-filewrap"
3
- version = "0.0.7"
3
+ version = "0.0.7.1"
4
4
  description = "Python file wrappers."
5
5
  authors = ["ChenyangGao <wosiwujm@gmail.com>"]
6
6
  license = "MIT"