Debian Codegraph @

tests/data/cases/pep_604.py

raw
1 def some_very_long_name_function() -> my_module.Asdf | my_module.AnotherType | my_module.YetAnotherType | None:
2 pass
3
4
5 def some_very_long_name_function() -> my_module.Asdf | my_module.AnotherType | my_module.YetAnotherType | my_module.EvenMoreType | None:
6 pass
7
8
9 # output
10
11
12 def some_very_long_name_function() -> (
13 my_module.Asdf | my_module.AnotherType | my_module.YetAnotherType | None
14 ):
15 pass
16
17
18 def some_very_long_name_function() -> (
19 my_module.Asdf
20 | my_module.AnotherType
21 | my_module.YetAnotherType
22 | my_module.EvenMoreType
23 | None
24 ):
25 pass