Skip to content

Commit

Permalink
#31 added typing for event constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-glushko committed Jan 2, 2024
1 parent fdbc343 commit 502b215
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions notifykit/_notifykit_lib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -52,32 +52,48 @@ class AccessEvent:
access_type: AccessType
access_mode: Optional[AccessMode]

def __init__(self, path: str, access_type: AccessType, access_mode: Optional[AccessMode]) -> None: ...

class CreateEvent:
path: Path
file_type: ObjectType

def __init__(self, path: str, file_type: ObjectType) -> None: ...

class ModifyDataEvent:
path: Path
data_type: DataType

def __init__(self, path: str, data_type: DataType) -> None: ...

class ModifyMetadataEvent:
path: Path
metadata_type: MetadataType

def __init__(self, path: str, metadata_type: MetadataType) -> None: ...

class ModifyOtherEvent:
path: Path

def __init__(self, path: str) -> None: ...

class ModifyUnknownEvent:
path: Path

def __init__(self, path: str) -> None: ...

class DeleteEvent:
path: Path
file_type: ObjectType

def __init__(self, path: str, file_type: ObjectType) -> None: ...

class RenameEvent:
old_path: Path
new_path: Path

def __init__(self, old_path: str, new_path: str) -> None: ...

class WatcherWrapper:
"""
Watcher listens to filesystem events and retrieves them for the Notifier.
Expand Down

0 comments on commit 502b215

Please sign in to comment.