Skip to content

Commit

Permalink
pylint-dev#8603 tests/pyreverse/test_utils.py, updated `test_get_an…
Browse files Browse the repository at this point in the history
…notation_label_of_return_type` with a variant for testing return type using syntax `X | Y`
  • Loading branch information
ViRuSTriNiTy committed Apr 23, 2023
1 parent f2fcee6 commit 11e38b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/pyreverse/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class A:
("def f() -> None: pass", "None"),
("def f() -> int: pass", "int"),
("def f(a) -> Optional[int]: return 1 if a else None", "Optional[int]"),
("def f(a) -> int | None: return 1 if a else None", r"int \| None"),
("def f() -> 'MyType': pass", "'MyType'"),
],
)
Expand Down

0 comments on commit 11e38b1

Please sign in to comment.