From 1fd4fc4e401ca126798cf614f1d9f24b1c5fdb59 Mon Sep 17 00:00:00 2001 From: brentyi Date: Tue, 12 Nov 2024 15:43:02 -0800 Subject: [PATCH] ruff --- tests/test_dcargs.py | 3 ++- tests/test_helptext.py | 5 ++--- tests/test_nested.py | 4 ++-- tests/test_torch_exclude_py313.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_dcargs.py b/tests/test_dcargs.py index 1c71c726..b82543d1 100644 --- a/tests/test_dcargs.py +++ b/tests/test_dcargs.py @@ -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: diff --git a/tests/test_helptext.py b/tests/test_helptext.py index 4844e751..768da2f6 100644 --- a/tests/test_helptext.py +++ b/tests/test_helptext.py @@ -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: diff --git a/tests/test_nested.py b/tests/test_nested.py index d8815bc9..e328370a 100644 --- a/tests/test_nested.py +++ b/tests/test_nested.py @@ -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: diff --git a/tests/test_torch_exclude_py313.py b/tests/test_torch_exclude_py313.py index bad381b9..8284a163 100644 --- a/tests/test_torch_exclude_py313.py +++ b/tests/test_torch_exclude_py313.py @@ -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: