Skip to content

Commit

Permalink
Updated typing for the latest MyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
aiudirog committed Jul 3, 2024
1 parent df7be4c commit 88fb8f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aiuti/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def buffer_until_timeout(
"""
if func is None:
return partial(buffer_until_timeout, timeout=timeout) # type: ignore
return wraps(func)(BufferAsyncCalls(func, timeout=timeout))
return wraps(func)(BufferAsyncCalls(func, timeout=timeout)) # type: ignore


class BufferAsyncCalls(Generic[T]):
Expand Down
2 changes: 1 addition & 1 deletion aiuti/filelock.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _import_optional(name: str) -> Any:

_logger = logging.getLogger(__name__)

PathLike = Union[str, os.PathLike]
PathLike = Union[str, 'os.PathLike[str]']
FileLockT = TypeVar('FileLockT', bound='BaseFileLock')


Expand Down

0 comments on commit 88fb8f8

Please sign in to comment.