BerkeleyLearnVerify / Scenic

A compiler and scenario generator for the Scenic scenario description language.
https://scenic-lang.org/
Other
283 stars 97 forks source link

Work around bpo-37838 #134

Closed dfremont closed 1 year ago

dfremont commented 1 year ago

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?

dfremont commented 1 year ago

I've tested that this fixes the issue in #132 on both Python 3.7.5 and 3.8.0.