-
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start fixing mypy errors and drop flask1 support
* Fix mypy error This should allow us to add a CI check for type checking going forward * Drop flask1 support Flask is no longer maintaining the 1.x.x branch, and has in fact broken it with pallets/flask#4456. Since just installing flask 1.1.4 is no longer sufficient to run our specs and insure compatibility, I've opted to follow suite and only support flask 2 going forward. If flask does decide to do further maintenance on 1.1.5 I will consider reverting this PR and doing whatever updates we need to in order to insure that they type checking isn't broken. * Fix type checking imports for python < 3.8
- Loading branch information
Showing
11 changed files
with
85 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,3 @@ jobs: | |
run: pip install tox | ||
- name: Run Tox | ||
run: tox -e py | ||
- name: Run Tox Flask 1 | ||
run: tox -e flask1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import sys | ||
from typing import Any | ||
from typing import Union | ||
|
||
if sys.version_info >= (3, 8): | ||
from typing import Literal # pragma: no cover | ||
else: | ||
from typing_extensions import Literal # pragma: no cover | ||
|
||
ExpiresDelta = Union[Literal[False], Any] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.