moat-lib-micro 0.3.2__tar.gz → 0.3.4__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.4
2
2
  Name: moat-lib-micro
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Compatibility layer for CPython/anyio and MicroPython/uasyncio
5
5
  Maintainer-email: Matthias Urlichs <matthias@urlichs.de>
6
6
  Project-URL: homepage, https://m-o-a-t.org
@@ -1,3 +1,9 @@
1
+ moat-lib-micro (0.3.4-2) unstable; urgency=medium
2
+
3
+ * New release for 26.2.13
4
+
5
+ -- Matthias Urlichs <matthias@urlichs.de> Wed, 23 Sep 2026 18:01:20 +0200
6
+
1
7
  moat-lib-micro (0.3.2-1) unstable; urgency=medium
2
8
 
3
9
  * New release for 26.1.10
@@ -2,12 +2,11 @@ Source: moat-lib-micro
2
2
  Maintainer: "Matthias Urlichs" <matthias@urlichs.de>
3
3
  Section: python
4
4
  Priority: optional
5
- Build-Depends: dh-python, python3-all, debhelper (>= 13),
5
+ Build-Depends: dh-python, python3-all, debhelper (>= 13), debhelper-compat (= 13),
6
6
  python3-setuptools,
7
7
  python3-wheel,
8
8
  Standards-Version: 3.9.6
9
9
  Homepage: https://m-o-a-t.org
10
- X-DH-Compat: 13
11
10
 
12
11
  Package: python3-moat-lib-micro
13
12
  Architecture: all
@@ -21,7 +21,7 @@ name = "moat-lib-micro"
21
21
  maintainers = [{email = "matthias@urlichs.de",name = "Matthias Urlichs"}]
22
22
  description='Compatibility layer for CPython/anyio and MicroPython/uasyncio'
23
23
  readme = "README.md"
24
- version = "0.3.2"
24
+ version = "0.3.4"
25
25
 
26
26
  [project.urls]
27
27
  homepage = "https://m-o-a-t.org"
@@ -26,6 +26,7 @@ from moat.util import Queue as _Queue
26
26
  from moat.util import QueueEmpty, QueueFull, merge
27
27
 
28
28
  from collections.abc import ( # noqa: TC002
29
+ AsyncGenerator,
29
30
  AsyncIterator,
30
31
  Iterable,
31
32
  Mapping,
@@ -50,7 +51,7 @@ if TYPE_CHECKING:
50
51
  @overload
51
52
  def __call__(
52
53
  self, t: float, p: None = None, /, *a: Any, **k: Any
53
- ) -> AsyncIterator[None]: ...
54
+ ) -> AsyncGenerator[None, None]: ...
54
55
 
55
56
  @overload
56
57
  def __call__(
@@ -60,7 +61,7 @@ if TYPE_CHECKING:
60
61
  /,
61
62
  *a: P.args,
62
63
  **k: P.kwargs,
63
- ) -> AsyncIterator[R]: ...
64
+ ) -> AsyncGenerator[R | None, None]: ...
64
65
 
65
66
  class _RunProto(Protocol):
66
67
  def __call__(
@@ -92,18 +93,18 @@ if TYPE_CHECKING:
92
93
 
93
94
  async def spawn(
94
95
  self,
95
- p: Callable[P, Awaitable[Any]],
96
- *a: P.args,
97
- _name: str | None = None, # ty:ignore[invalid-paramspec]
98
- **k: P.kwargs,
96
+ p: Callable[..., Awaitable[Any]],
97
+ *a: Any,
98
+ _name: str | None = None,
99
+ **k: Any,
99
100
  ) -> _anyio.CancelScope: ...
100
101
 
101
102
  def start_soon(
102
103
  self,
103
- p: Callable[P, Awaitable[Any]],
104
- *a: P.args,
105
- _name: str | None = None, # ty:ignore[invalid-paramspec]
106
- **k: P.kwargs,
104
+ p: Callable[..., Awaitable[Any]],
105
+ *a: Any,
106
+ _name: str | None = None,
107
+ **k: Any,
107
108
  ) -> None: ...
108
109
 
109
110
  def cancel(self) -> None: ...
@@ -321,7 +322,7 @@ async def wait_for_ms(timeout: float, p: Callable[..., Awaitable[R]], *a, **k) -
321
322
 
322
323
  async def every_ms(
323
324
  t: float, p: Callable[..., Awaitable[R]] | None = None, *a, **k
324
- ) -> AsyncIterator[R | None]:
325
+ ) -> AsyncGenerator[R | None, None]:
325
326
  "every t milliseconds, call ``p(*a,**k)``"
326
327
  tt = ticks_add(ticks_ms(), int(t))
327
328
  while True:
@@ -339,7 +340,7 @@ async def every_ms(
339
340
  tt = ticks_add(tn, int(t))
340
341
 
341
342
 
342
- def every(t: float, *a, **k) -> AsyncIterator[Any]:
343
+ def every(t: float, *a, **k) -> AsyncGenerator[Any, None]:
343
344
  "every t seconds, call ``p(*a,**k)``"
344
345
  return every_ms(t * 1000, *a, **k)
345
346
 
@@ -422,6 +423,7 @@ def TaskGroup() -> _TaskGroupProto: # Returns augmented TaskGroup instance
422
423
  self.cancel_scope.cancel()
423
424
 
424
425
  _tg = TaskGroup_
426
+ assert _tg is not None
425
427
  return _tg()
426
428
 
427
429
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moat-lib-micro
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Compatibility layer for CPython/anyio and MicroPython/uasyncio
5
5
  Maintainer-email: Matthias Urlichs <matthias@urlichs.de>
6
6
  Project-URL: homepage, https://m-o-a-t.org
File without changes
File without changes
File without changes