Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefer stdlib TemporaryDirectory #7680

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

prefer stdlib TemporaryDirectory

8b66b68
Select commit
Loading
Failed to load commit list.
Draft

prefer stdlib TemporaryDirectory #7680

prefer stdlib TemporaryDirectory
8b66b68
Select commit
Loading
Failed to load commit list.
Cirrus CI / Tests / FreeBSD (Python 3.9) / mypy failed Apr 8, 2024 in 2m 17s

Task Summary

Instruction mypy failed in 01:05

Details

ℹ️ Scheduling was delayed due to a concurrency limit on community tasks

✅ 00:03 clone
✅ 00:46 bootstrap_poetry
✅ 00:19 setup_environment
❌ 01:05 mypy

poetry run mypy
src/poetry/utils/env/__init__.py:46: error: No overload variant of "TemporaryDirectory" matches argument type "bool"  [call-overload]
src/poetry/utils/env/__init__.py:46: note: Possible overload variants:
src/poetry/utils/env/__init__.py:46: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[str] = ..., prefix: Optional[str] = ..., dir: Union[str, PathLike[str], None] = ...) -> TemporaryDirectory[str]
src/poetry/utils/env/__init__.py:46: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[bytes] = ..., prefix: Optional[bytes] = ..., dir: Union[bytes, PathLike[bytes], None] = ...) -> TemporaryDirectory[bytes]
src/poetry/installation/chef.py:90: error: No overload variant of "TemporaryDirectory" matches argument type "bool"  [call-overload]
src/poetry/installation/chef.py:90: note: Possible overload variants:
src/poetry/installation/chef.py:90: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[str] = ..., prefix: Optional[str] = ..., dir: Union[str, PathLike[str], None] = ...) -> TemporaryDirectory[str]
src/poetry/installation/chef.py:90: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[bytes] = ..., prefix: Optional[bytes] = ..., dir: Union[bytes, PathLike[bytes], None] = ...) -> TemporaryDirectory[bytes]
src/poetry/inspection/info.py:319: error: No overload variant of "TemporaryDirectory" matches argument type "bool"  [call-overload]
src/poetry/inspection/info.py:319: note: Possible overload variants:
src/poetry/inspection/info.py:319: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[str] = ..., prefix: Optional[str] = ..., dir: Union[str, PathLike[str], None] = ...) -> TemporaryDirectory[str]
src/poetry/inspection/info.py:319: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[bytes] = ..., prefix: Optional[bytes] = ..., dir: Union[bytes, PathLike[bytes], None] = ...) -> TemporaryDirectory[bytes]
src/poetry/repositories/http_repository.py:107: error: No overload variant of "TemporaryDirectory" matches argument type "bool"  [call-overload]
src/poetry/repositories/http_repository.py:107: note: Possible overload variants:
src/poetry/repositories/http_repository.py:107: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[str] = ..., prefix: Optional[str] = ..., dir: Union[str, PathLike[str], None] = ...) -> TemporaryDirectory[str]
src/poetry/repositories/http_repository.py:107: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[bytes] = ..., prefix: Optional[bytes] = ..., dir: Union[bytes, PathLike[bytes], None] = ...) -> TemporaryDirectory[bytes]
tests/packages/test_locker.py:1123: error: No overload variant of "TemporaryDirectory" matches argument type "bool"  [call-overload]
tests/packages/test_locker.py:1123: note: Possible overload variants:
tests/packages/test_locker.py:1123: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[str] = ..., prefix: Optional[str] = ..., dir: Union[str, PathLike[str], None] = ...) -> TemporaryDirectory[str]
tests/packages/test_locker.py:1123: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[bytes] = ..., prefix: Optional[bytes] = ..., dir: Union[bytes, PathLike[bytes], None] = ...) -> TemporaryDirectory[bytes]
tests/packages/test_locker.py:1125: error: No overload variant of "TemporaryDirectory" matches argument types "Any", "bool"  [call-overload]
tests/packages/test_locker.py:1125: note: Possible overload variants:
tests/packages/test_locker.py:1125: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[str] = ..., prefix: Optional[str] = ..., dir: Union[str, PathLike[str], None] = ...) -> TemporaryDirectory[str]
tests/packages/test_locker.py:1125: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[bytes] = ..., prefix: Optional[bytes] = ..., dir: Union[bytes, PathLike[bytes], None] = ...) -> TemporaryDirectory[bytes]
tests/packages/test_locker.py:1127: error: No overload variant of "TemporaryDirectory" matches argument types "Any", "bool"  [call-overload]
tests/packages/test_locker.py:1127: note: Possible overload variants:
tests/packages/test_locker.py:1127: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[str] = ..., prefix: Optional[str] = ..., dir: Union[str, PathLike[str], None] = ...) -> TemporaryDirectory[str]
tests/packages/test_locker.py:1127: note:     def [AnyStr in (str, bytes)] __init__(self, suffix: Optional[bytes] = ..., prefix: Optional[bytes] = ..., dir: Union[bytes, PathLike[bytes], None] = ...) -> TemporaryDirectory[bytes]
Found 7 errors in 5 files (checked 331 source files)