Skip to content

Commit

Permalink
Add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
HexDecimal committed Nov 14, 2023
1 parent 6f9126b commit ac19cbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion delocate/tests/env_tools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
from contextlib import contextmanager
from typing import Iterator

from ..tmpdirs import InTemporaryDirectory

Expand Down Expand Up @@ -27,7 +28,7 @@ def TempDirWithoutEnvVars(*env_vars):


@contextmanager
def _scope_env(**env):
def _scope_env(**env: str) -> Iterator[None]:
"""Add `env` to the environment and remove them after testing
is complete.
"""
Expand Down
2 changes: 1 addition & 1 deletion delocate/tests/test_wheelies.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def test_fix_namespace() -> None:
assert delocate_wheel(NAMESPACE_WHEEL, "out.whl") == stray_libs


def test_source_date_epoch():
def test_source_date_epoch() -> None:
with InTemporaryDirectory():
zip2dir(PURE_WHEEL, "package")
for date_time, sde in (
Expand Down

0 comments on commit ac19cbd

Please sign in to comment.