Skip to content

Commit

Permalink
feat: Support Pydantic 2 (#148)
Browse files Browse the repository at this point in the history
Co-authored-by: Edgar Ramírez Mondragón <[email protected]>
  • Loading branch information
WillDaSilva and edgarrmondragon authored Oct 18, 2023
1 parent 1d405aa commit ed2e724
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 54 deletions.
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

0 comments on commit ed2e724

Please sign in to comment.