Skip to content

Commit

Permalink
ruff format update with ruff v0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhe-log10 committed Mar 4, 2024
1 parent 761f7ec commit d60ee1c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions examples/logging/magentic_async_function_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ def add(x: int, y: int) -> int:


@prompt("What is 1+1? Use tools", functions=[add])
async def agent() -> AsyncStreamedStr:
...
async def agent() -> AsyncStreamedStr: ...


# Define an async main function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@


@prompt("What is {a} * {b}?", model=OpenaiChatModel(model="gpt-4-turbo-preview"))
async def do_math_with_llm_async(a: int, b: int) -> AsyncStreamedStr:
...
async def do_math_with_llm_async(a: int, b: int) -> AsyncStreamedStr: # ruff: ignore
... # ruff: ignore


async def main():
Expand Down
3 changes: 1 addition & 2 deletions examples/logging/magentic_async_stream_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@


@prompt("Tell me a 200-word story about {topic}")
async def tell_story(topic: str) -> AsyncStreamedStr:
...
async def tell_story(topic: str) -> AsyncStreamedStr: ...


async def main():
Expand Down
3 changes: 1 addition & 2 deletions examples/logging/magentic_function_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def activate_oven(temperature: int, mode: Literal["broil", "bake", "roast"]) ->
"Prepare the oven so I can make {food}",
functions=[activate_oven],
)
def configure_oven(food: str) -> FunctionCall[str]:
...
def configure_oven(food: str) -> FunctionCall[str]: ...


output = configure_oven("cookies!")
Expand Down

0 comments on commit d60ee1c

Please sign in to comment.