Remove deprecated type hints
I used ruff to upgrade the current codebase since 3.9 is not supported anymore and since typing.Union and typing.Optional are both deprecated I saw something that could be easily fixed up.
Seeing how this library tests for uvloop I was wondering if I could add winloop to the mix in a later pull request?
This looks great, thanks for the cleanup! Do you mind signing your commits, sorry that's a check I've been meaning to have in place for some time.
I'd accept a change to add winloop to the test suite, I think you should be able to follow the uvloop setup.
I just needed to sign it I don't know exactly how to sign the others off since I've never signed commits before I did this one.