SIGN IN SIGN UP

Remove typing aliases deprecated in python 3.9. Also replace usages of typing.Union/Optional with | (#5277)

* Remove typing aliases deprecated in python 3.9

* Remove usages of Union

* Update codegen/opentelemetry-codegen-json/src/opentelemetry/codegen/json/generator.py

Co-authored-by: Lukas Hering <40302054+herin049@users.noreply.github.com>

* Replace all usages of typing.Optional with |

* Create 5277.changed

---------

Co-authored-by: Lukas Hering <40302054+herin049@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
D
DylanRussell committed
7283c4c0845665e5d6169c3fce5e6c8ac6f0650e
Parent: 4c8569d
Committed by GitHub <noreply@github.com> on 6/17/2026, 1:15:25 PM