Skip to content

Commit

Permalink
Upgrade pytype, black versions (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch authored Dec 14, 2021
1 parent dc09c4c commit 68e792e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/run_pytype.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ script_dir=$(dirname $0)
cd ${script_dir}/.. && \
pip install -e ".[async]" && \
pip install -e ".[adapter]" && \
pip install "pytype==2021.10.25" && \
pip install "pytype==2021.12.8" && \
pytype slack_bolt/
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"pytest-cov>=3,<4",
"Flask-Sockets>=0.2,<1",
"Werkzeug<2", # TODO: support Flask 2.x
"black==21.10b0",
"black==21.12b0",
]

async_test_dependencies = test_dependencies + [
Expand Down
2 changes: 1 addition & 1 deletion slack_bolt/adapter/falcon/resource.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime # type: ignore
from http import HTTPStatus

from falcon import Request, Response
Expand Down
2 changes: 1 addition & 1 deletion slack_bolt/adapter/sanic/async_handler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime # type: ignore

from sanic.request import Request
from sanic.response import HTTPResponse
Expand Down
2 changes: 1 addition & 1 deletion slack_bolt/adapter/tornado/handler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime # type: ignore

from tornado.httputil import HTTPServerRequest
from tornado.web import RequestHandler
Expand Down
3 changes: 3 additions & 0 deletions slack_bolt/context/base_context.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# pytype: skip-file
# Note: Since 2021.12.8, the pytype code analyzer does not properly work for this file

from logging import Logger
from typing import Optional, Tuple

Expand Down

0 comments on commit 68e792e

Please sign in to comment.