Skip to content

Commit

Permalink
fixed typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Nov 15, 2024
1 parent a4f1908 commit 69cd300
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 204 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging
import hashlib
from pathlib import Path
from typing import Tuple, Final
from typing import Tuple, Final, List, Dict


_logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -34,7 +34,7 @@ def _get_file_info(filepath: Path) -> Tuple[str, float]:
return file_hash, modification_time


def _list_files_in_dir(path: Path) -> list[Path]:
def _list_files_in_dir(path: Path) -> List[Path]:
return [x for x in path.rglob("*") if x.is_file()]


Expand Down Expand Up @@ -87,7 +87,7 @@ def __init__(
self._monitor_task: asyncio.Task | None = None
self._keep_running: bool = False

def _get_state(self) -> dict[Path, dict[Path, Tuple[str, float]]]:
def _get_state(self) -> Dict[Path, Dict[Path, Tuple[str, float]]]:
"""return aggravated state for all monitored paths"""
return {p: _get_directory_state(p) for p in self.paths}

Expand Down

0 comments on commit 69cd300

Please sign in to comment.