This should fix the issue in #132 on old versions of Python.
I tested this by unconditionally patching typing.get_type_hints, but the PR only does the patching when the version of Python is old enough to suffer from bpo-37838. @Eric-Vin since I can't install an old-enough version under macOS, and our CI probably doesn't use one either, can you please see if you can do it on your machine?
This should fix the issue in #132 on old versions of Python.
I tested this by unconditionally patching
typing.get_type_hints
, but the PR only does the patching when the version of Python is old enough to suffer from bpo-37838. @Eric-Vin since I can't install an old-enough version under macOS, and our CI probably doesn't use one either, can you please see if you can do it on your machine?