Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Glushko committed Dec 27, 2023
2 parents f1e9aa9 + e9733b7 commit d9aea9d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "notifykit_lib"
version = "0.0.5"
version = "0.0.6"
edition = "2021"
license = "A toolkit for building applications watching filesystem changes"
homepage = "https://github.com/roma-glushko/notifykit"
Expand Down
3 changes: 2 additions & 1 deletion notifykit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from notifykit._notifier import Notifier, NotifierT
from notifykit._notifier import Notifier, NotifierT, Event
from notifykit._notifykit_lib import (
__version__,
ObjectType,
Expand All @@ -22,6 +22,7 @@
"Notifier",
"NotifierT",
"VERSION",
"Event",
"ObjectType",
"AccessType",
"AccessMode",
Expand Down
10 changes: 5 additions & 5 deletions notifykit/_notifier.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from os import PathLike
import anyio
from typing import Sequence, Protocol, Optional, Any, List
from typing import Sequence, Protocol, Optional, List
from notifykit._notifykit_lib import (
WatcherWrapper,
AccessEvent,
Expand Down Expand Up @@ -32,16 +32,16 @@ def watch(
def unwatch(self, paths: Sequence[str]) -> None:
...

def __enter__(self) -> "Notifier":
def __aiter__(self) -> "Notifier":
...

def __exit__(self, *args: Any, **kwargs: Any) -> None:
def __iter__(self) -> "Notifier":
...

def __aiter__(self) -> "Notifier":
def __next__(self) -> List[Event]:
...

def __iter__(self) -> "Notifier":
async def __anext__(self) -> List[Event]:
...


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "notifykit"
version = "0.0.5"
version = "0.0.6"
description = "A modern efficient Python toolkit for building applications that need to watch filesystem changes"
authors = [
{name = "Roman Glushko", email = "roman.glushko.m@gmail.com"},
Expand Down

0 comments on commit d9aea9d

Please sign in to comment.