ci: update type packages

This commit is contained in:
Iain Learmonth 2022-11-02 14:22:01 +00:00
parent 0ab9fdebc5
commit f92e713e98
3 changed files with 4 additions and 3 deletions

View file

@ -19,7 +19,7 @@ app.wsgi_app = DispatcherMiddleware(app.wsgi_app, { # type: ignore[assignment]
'/metrics': make_wsgi_app()
})
db.init_app(app)
db.init_app(app) # type: ignore[no-untyped-call]
migrate.init_app(app, db, render_as_batch=True)
bootstrap.init_app(app)

View file

@ -22,14 +22,14 @@ models = {
}
def export(model: db.Model) -> None:
def export(model: db.Model) -> None: # type: ignore[name-defined]
out = csv.writer(sys.stdout)
out.writerow(model.csv_header())
for row in model.query.all():
out.writerow(row.csv_row())
def impot(model: db.Model) -> None:
def impot(model: db.Model) -> None: # type: ignore[name-defined]
first = True
header = model.csv_header()
try:

View file

@ -1,4 +1,5 @@
mypy
types-flask-sqlalchemy
types-requests
types-PyYAML
types-python-dateutil