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

Python3.8 support #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 pyhelm3/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def pull_chart(
devel: bool = False,
repo: t.Optional[str] = None,
version: t.Optional[str] = None
) -> contextlib.AbstractAsyncContextManager[pathlib.Path]:
) -> t.AsyncGenerator[Chart, None]:
"""
Context manager that pulls the specified chart and yields a chart object
whose ref is the unpacked chart directory.
Expand Down
5 changes: 3 additions & 2 deletions pyhelm3/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import enum
import pathlib
import typing as t
import annotated_types as at

import yaml

Expand Down Expand Up @@ -59,8 +60,8 @@ def validate_str_as(validate_type):


#: Annotated string types for URLs
AnyUrl = t.Annotated[str, AfterValidator(validate_str_as(PydanticAnyUrl))]
HttpUrl = t.Annotated[str, AfterValidator(validate_str_as(PydanticHttpUrl))]
AnyUrl = at.Annotated[str, AfterValidator(validate_str_as(PydanticAnyUrl))]
HttpUrl = at.Annotated[str, AfterValidator(validate_str_as(PydanticHttpUrl))]


class ChartDependency(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ zip_safe = False
include_package_data = True
packages = find:
install_requires =
pydantic
pydantic>=2.0.0
pyyaml