def _re_sub_callback(match):
        # type: (Match[Text]) -> Text
        """
        From a match object gets the variable name and returns
        the correct replacement
        """
        matches = match.groupdict()
        return _replacement(name=matches["name"], default=matches["default"])  # type: ignore

        From a match object gets the variable name and returns
        the correct replacement
        
dynaconf/vendor/dotenv/main.py