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

feat: Support Pydantic 2 #148

Merged
merged 6 commits into from
Oct 18, 2023
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
5 changes: 3 additions & 2 deletions meltano/edk/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Various models used to describe extensions."""

from typing import List

from pydantic import BaseModel
Expand All @@ -16,7 +17,7 @@ class Command(BaseModel):
class ExtensionCommand(Command):
"""Describes an extension command."""

description = "The extension cli"
description: str = "The extension cli"
pass_through_cli: bool = False
commands: List[str] = [
"describe",
Expand All @@ -30,7 +31,7 @@ class ExtensionCommand(Command):
class InvokerCommand(Command):
"""Describes an invoker style command."""

description = "The pass through invoker cli"
description: str = "The pass through invoker cli"
pass_through_cli: bool = True
commands: List[str] = [":splat"]

Expand Down
Loading