Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and dlqqq committed Mar 5, 2024
1 parent 555db1d commit d4ce648
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/jupyter-ai-magics/jupyter_ai_magics/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
from langchain.schema import HumanMessage

from ._version import __version__


from .parsers import (
CellArgs,
DeleteArgs,
Expand Down
3 changes: 3 additions & 0 deletions packages/jupyter-ai-magics/jupyter_ai_magics/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ class ErrorArgs(BaseModel):
class HelpArgs(BaseModel):
type: Literal["help"] = "help"


class VersionArgs(BaseModel):
type: Literal["version"] = "version"


class ListArgs(BaseModel):
type: Literal["list"] = "list"
provider_id: Optional[str]
Expand Down Expand Up @@ -216,6 +218,7 @@ def error_subparser(**kwargs):
"""
return ErrorArgs(**kwargs)


@line_magic_parser.command(name="version")
def version_subparser(**kwargs):
"""
Expand Down

0 comments on commit d4ce648

Please sign in to comment.