Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Nov 12, 2024
1 parent 16dd501 commit 1fd4fc4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion tests/test_dcargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
)

import pytest
import tyro
from typing_extensions import Annotated, Final, Literal, TypeAlias

import tyro


def test_no_args() -> None:
def main() -> int:
Expand Down
5 changes: 2 additions & 3 deletions tests/test_helptext.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
import json
import os
import pathlib
from collections.abc import Callable
from typing import Any, Dict, Generic, List, Optional, Tuple, TypeVar, Union, cast

import tyro
from helptext_utils import get_helptext_with_checks
from typing_extensions import Annotated, Literal, NotRequired, TypedDict

from helptext_utils import get_helptext_with_checks
import tyro


def test_helptext() -> None:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
from typing import Any, Generic, Mapping, NewType, Optional, Tuple, TypeVar, Union

import pytest
import tyro
from frozendict import frozendict # type: ignore
from helptext_utils import get_helptext_with_checks
from typing_extensions import Annotated, Final, Literal

from helptext_utils import get_helptext_with_checks
import tyro


def test_nested() -> None:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_torch_exclude_py313.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Any, Callable, Tuple

import torch
import tyro
from helptext_utils import get_helptext_with_checks
from torch import nn

from helptext_utils import get_helptext_with_checks
import tyro


def test_torch_device() -> None:
Expand Down

0 comments on commit 1fd4fc4

Please sign in to comment.