Skip to content

hvac: add types for hvac.api.secrets_engines.consul - #16501

Open
MaicoTimmerman wants to merge 1 commit into
python:mainfrom
MaicoTimmerman:hvac-secret-engine-consul
Open

MaicoTimmerman wants to merge 1 commit into
python:mainfrom
MaicoTimmerman:hvac-secret-engine-consul

Conversation

@MaicoTimmerman

Copy link
Copy Markdown
Contributor

Types generated from the provided docstring on the class.

The adapter on VaultApiBase already carries its response type, but VaultApiBase currently erases it with Adapter[Any]. We introduce a local generic without affecting the wider hvac API. This can later on be expanded on to the different secret engines.

  • RawAdapter methods return Response.
  • JSONAdapter methods return Response | dict[Any, Any].
  • Unparameterized Consul defaults to the standard JSON adapter union.

Co-Authored-By: Factory Droid (GPT-5.6 Sol)

@github-actions

This comment has been minimized.

Types generated from the provided docstring on the class.

The adapter on VaultApiBase already carries its response type, but
VaultApiBase currently erases it with Adapter[Any]. We introduce a local
generic without affecting the wider hvac API.

- RawAdapter methods return Response.
- JSONAdapter methods return Response | dict[Any, Any].
- Unparameterized Consul defaults to the standard JSON adapter union.

Co-Authored-By: Factory Droid (GPT-5.6 Sol)
@MaicoTimmerman
MaicoTimmerman force-pushed the hvac-secret-engine-consul branch from b94f6fa to ff8533e Compare October 30, 2026 19:30
@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant