ref: Some ruff fixes from preview (#5420)
* Some ruff fixes from preview * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
3454ede5a5
commit
e91bcc2520
79 changed files with 402 additions and 374 deletions
|
|
@ -64,7 +64,7 @@ class TestInput:
|
|||
# Empty lists and edge cases
|
||||
assert set(post_process_type(list)) == {list}
|
||||
assert set(post_process_type(Union[int, None])) == {int, NoneType} # noqa: UP007
|
||||
assert set(post_process_type(Union[None, list[None]])) == {None, NoneType} # noqa: UP007
|
||||
assert set(post_process_type(Union[list[None], None])) == {None, NoneType} # noqa: UP007
|
||||
|
||||
# Handling complex nested structures
|
||||
assert set(post_process_type(Union[SequenceABC[int | str], list[float]])) == {int, str, float} # noqa: UP007
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue