Skip to content

Commit

Permalink
tests: more flexibility in test_attrs.py.
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Manica <[email protected]>
  • Loading branch information
drugilsberg committed Feb 13, 2024
1 parent 8547f6e commit 3830641
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ def test_get_variables_and_type_names() -> None:
("variable_1", "float"),
("variable_2", "str"),
("variable_3", "typing.Union[int, NoneType]"),
] or get_variables_and_type_names(DummyClass) == [
("variable_1", "float"),
("variable_2", "str"),
("variable_3", "typing.Optional[int]"),
]

0 comments on commit 3830641

Please sign in to comment.