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

[PIP] Bump mypy from 1.13.0 to 1.14.1 #1112

Merged
merged 3 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lint_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ black==24.10.0
flake8==7.1.1
flake8-pyproject==1.2.3
isort==5.13.2
mypy==1.13.0
mypy==1.14.1
shellcheck-py==0.10.0.1

# Type annotation stubs
Expand Down
4 changes: 2 additions & 2 deletions pulp-glue/pulp_glue/common/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ def _send_request(
) -> _Response:
method_spec = path_spec[method]
content_type, data, files = self._render_request_body(method_spec, body, validate_body)
security: t.List[t.Dict[str, t.List[str]]] = method_spec.get(
"security", self.api_spec.get("security", {})
security: t.Optional[t.List[t.Dict[str, t.List[str]]]] = method_spec.get(
"security", self.api_spec.get("security")
)
if security and self._auth_provider:
if "Authorization" in self._session.headers:
Expand Down
4 changes: 3 additions & 1 deletion pytest_pulp_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ def pulp_container_log(pulp_container_log_stream: t.IO[bytes]) -> t.Iterator[Non

else:

# MyPy complains about an incompatible redefinition.
# I don't think this quite applies to the fixtures do dependency injection.
@pytest.fixture
def pulp_container_log() -> t.Iterator[None]:
def pulp_container_log() -> t.Iterator[None]: # type: ignore[misc]
yield
Loading