ci: update type packages
This commit is contained in:
parent
0ab9fdebc5
commit
f92e713e98
3 changed files with 4 additions and 3 deletions
|
@ -19,7 +19,7 @@ app.wsgi_app = DispatcherMiddleware(app.wsgi_app, { # type: ignore[assignment]
|
||||||
'/metrics': make_wsgi_app()
|
'/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)
|
migrate.init_app(app, db, render_as_batch=True)
|
||||||
bootstrap.init_app(app)
|
bootstrap.init_app(app)
|
||||||
|
|
||||||
|
|
|
@ -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 = csv.writer(sys.stdout)
|
||||||
out.writerow(model.csv_header())
|
out.writerow(model.csv_header())
|
||||||
for row in model.query.all():
|
for row in model.query.all():
|
||||||
out.writerow(row.csv_row())
|
out.writerow(row.csv_row())
|
||||||
|
|
||||||
|
|
||||||
def impot(model: db.Model) -> None:
|
def impot(model: db.Model) -> None: # type: ignore[name-defined]
|
||||||
first = True
|
first = True
|
||||||
header = model.csv_header()
|
header = model.csv_header()
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
mypy
|
mypy
|
||||||
|
types-flask-sqlalchemy
|
||||||
types-requests
|
types-requests
|
||||||
types-PyYAML
|
types-PyYAML
|
||||||
types-python-dateutil
|
types-python-dateutil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue