def _get_typing_replacement_module():
 global _typing_module
 if (_typing_module is None):
  typing_path = os.path.abspath(os.path.join(__file__, '../jedi_typing.py'))
  with open(typing_path) as f:
   code = _compatibility.unicode(f.read())
  p = ParserWithRecovery(load_grammar(), code)
  _typing_module = p.module
 return _typing_module

def _get_typing_replacement_module ( ) : global _typing_module if ( _typing_module is None ) : typing_path = os . path . abspath ( os . path . join ( __file__ , '../jedi_typing.py' ) ) with open ( typing_path ) as f : code = _compatibility . unicode ( f . read ( ) ) p = ParserWithRecovery ( load_grammar ( ) , code ) _typing_module = p . module return _typing_module
the idea is to return our jedi replacement for the pep-0484 typing module as discussed at URL .