import importlib


_delayed_symbols = {
    "Dict": ".typeddict",
    "List": ".typedlist",
}


def __getattr__(name):
    # Uses PEP-562 but requires python>3.6
    if name in _delayed_symbols:
        modpath = _delayed_symbols[name]
        mod = importlib.import_module(modpath, __name__)
        return getattr(mod, name)
    else:
        return importlib.import_module(f".{name}", __name__)

@@ -330,16 +330,33 @@
   else:%0A
+        try:%0A    
         
@@ -396,20 +396,89 @@
 .%7Bname%7D%22, __name__)%0A
+        except ModuleNotFoundError:%0A            raise AttributeError%0A

Fix PEP 562 usage.