HomePhabricator

Fix lots of type errors

Description

Fix lots of type errors

Mostly by hiding them. The one for pagepile.load_pagepile (declared to
only accept int, we passed strings from the request into it) was
legitimate, so declare it to accept str|int and stringify the argument.

Most of these errors are already fixed on Flask master
(pallets/flask#4109 [1]), but haven’t made it into a release yet.
Hopefully I’ll remember to remove the type: ignore comments later.

[1]: https://github.com/pallets/flask/pull/4109

Details

Provenance
LucasWerkmeisterAuthored on Jul 20 2021, 6:54 PM
Parents
R2494:f1db14b22cb4: Remove stray </textarea> tag
Branches
Unknown
Tags
Unknown
ChangeId
None