Skip to content

pyctuator._integrate_flask() does not use passed customizer: Optional[Callable] #107

Open
@vsutskever

Description

@vsutskever

pyctuator._integrate_flask() does not use passed customizer: Optional[Callable]

def _integrate_flask(
            self,
            app: Any,
            pyctuator_impl: PyctuatorImpl,
            customizer: Optional[Callable],
            disabled_endpoints: Endpoints,
    ) -> bool:
        """
        This method should only be called if we detected that Flask is installed.
        It will then check whether the given app is a Flask app, and if so - it will add the Pyctuator
        endpoints to it.
        """
        from flask import Flask
        if isinstance(app, Flask):
            from pyctuator.impl.flask_pyctuator import FlaskPyctuator
            FlaskPyctuator(app, pyctuator_impl, disabled_endpoints)
            return True
        return False`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions