(self, parse_replacement: Callable)
return inner
A decorator factory to indicate that a method on the adapter will be
        exposed to the database wrapper, and will be stubbed out at parse time
        with the given function.

        @available.parse()
        def my_method(self, a, b):
            if something:
                return None
            return big_expensive_db_query()

        @available.parse(lambda *args, **args: {})
        def my_other_method(self, a, b):
            x = {}
            x.update(big_expensive_db_query())
            return x
A decorator factory to indicate that a method on the adapter will be
        exposed to the database wrapper, and will be stubbed out at parse time
        with the given function.
A decorator factory to indicate that a method on the adapter will be exposed to the database wrapper and will be stubbed out at parse time with the given function .
def parse(self, parse_replacement: Callable) -> Decorator:
        """A decorator factory to indicate that a method on the adapter will be
        exposed to the database wrapper, and will be stubbed out at parse time
        with the given function.

        @available.parse()
        def my_method(self, a, b):
            if something:
                return None
            return big_expensive_db_query()

        @available.parse(lambda *args, **args: {})
        def my_other_method(self, a, b):
            x = {}
            x.update(big_expensive_db_query())
            return x
        """
        def inner(func):
            func._parse_replacement_ = parse_replacement
            return self(func)
        return inner
def parse ( self , parse_replacement : Callable ) -> Decorator : def inner ( func ) : func . _parse_replacement_ = parse_replacement return self ( func ) return inner