metrics: remove type ignores that are no longer required
This commit is contained in:
parent
0ff61721d9
commit
0ab9fdebc5
2 changed files with 14 additions and 13 deletions
|
@ -16,7 +16,7 @@ app = Flask(__name__)
|
|||
app.config.from_file("../config.yaml", load=yaml.safe_load)
|
||||
|
||||
app.wsgi_app = DispatcherMiddleware(app.wsgi_app, { # type: ignore[assignment]
|
||||
'/metrics': make_wsgi_app() # type: ignore[no-untyped-call]
|
||||
'/metrics': make_wsgi_app()
|
||||
})
|
||||
|
||||
db.init_app(app)
|
||||
|
@ -30,9 +30,9 @@ app.register_blueprint(tfstate, url_prefix="/tfstate")
|
|||
if 'nose' not in sys.modules.keys() and sys.argv[1] != "db":
|
||||
from app.metrics import DefinedProxiesCollector, BlockedProxiesCollector, AutomationCollector
|
||||
|
||||
REGISTRY.register(DefinedProxiesCollector(app)) # type: ignore[no-untyped-call]
|
||||
REGISTRY.register(BlockedProxiesCollector(app)) # type: ignore[no-untyped-call]
|
||||
REGISTRY.register(AutomationCollector(app)) # type: ignore[no-untyped-call]
|
||||
REGISTRY.register(DefinedProxiesCollector(app))
|
||||
REGISTRY.register(BlockedProxiesCollector(app))
|
||||
REGISTRY.register(AutomationCollector(app))
|
||||
|
||||
|
||||
@app.route('/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue