Skip to content

Commit

Permalink
Update repository type to str | Path.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Mar 4, 2024
1 parent a0f5ca5 commit 04462e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readmeai/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pathlib import Path
from typing import Optional, Union

from pydantic import BaseModel, DirectoryPath, Field, HttpUrl, validator
from pydantic import BaseModel, Field, HttpUrl, validator

from readmeai.config.validators import GitValidator
from readmeai.core.logger import Logger
Expand Down Expand Up @@ -41,7 +41,7 @@ class FileSettings(BaseModel):
class GitSettings(BaseModel):
"""User repository settings, sanitized and validated by Pydantic."""

repository: Union[HttpUrl, DirectoryPath] = Field(
repository: Union[str, Path] = Field(
...,
description="The URL or directory path to the repository.",
)
Expand Down

0 comments on commit 04462e0

Please sign in to comment.