Issues with the typing Library in Python 3.7 and AWS Lambda

I recently upgraded an AWS Lambda API for Upfront Jobs to Python 3.7. This upgrade required me to use a library that relies on the typing module as one if its dependencies. However, when I deployed I noticed conflicts between the Python standard library typing and the typing module that was being installed. Here’s how I resolved the issues for my work and how others could do the same. If you’d like the simple solution and no explanation, scroll down to the Solution section.

Creating Your First Python API with Flask

In this tutorial, we’ll use Flask to create an API that serves up historical weather data in the Seattle area. We’ll put together a very simple API using open weather data and finally, we’ll suggest a few modifications you could make to continue expanding and improving the functionality of your API.