Skip to content

Commit

Permalink
Fix lint/typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
7x11x13 committed Nov 2, 2024
1 parent 33e30d3 commit 43b1113
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion scdl/metadata_assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class MetadataInfo:


@singledispatch
def assemble_metadata(file: FileType, meta: MetadataInfo) -> None: # noqa: ARG001
def assemble_metadata(file: FileType, meta: MetadataInfo) -> None:
raise NotImplementedError


Expand Down
13 changes: 3 additions & 10 deletions scdl/scdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,20 +264,13 @@ def clean_up_locks() -> None:
class SafeLock:
def __init__(
self,
lock_file: str | os.PathLike[str],
lock_file: Union[str, os.PathLike[str]],
timeout: float = -1,
mode: int = 0o644,
thread_local: bool = True,
*,
blocking: bool = True,
is_singleton: bool = False,
) -> None:
self._lock = filelock.FileLock(
lock_file, timeout, mode, thread_local, blocking=blocking, is_singleton=is_singleton
)
self._soft_lock = filelock.SoftFileLock(
lock_file, timeout, mode, thread_local, blocking=blocking, is_singleton=is_singleton
)
self._lock = filelock.FileLock(lock_file, timeout, mode, thread_local)
self._soft_lock = filelock.SoftFileLock(lock_file, timeout, mode, thread_local)
self._using_soft_lock = False

def __enter__(self):
Expand Down

0 comments on commit 43b1113

Please sign in to comment.