Skip to content

Commit 68e792e

Browse files
authored
Upgrade pytype, black versions (#547)
1 parent dc09c4c commit 68e792e

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

scripts/run_pytype.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ script_dir=$(dirname $0)
55
cd ${script_dir}/.. && \
66
pip install -e ".[async]" && \
77
pip install -e ".[adapter]" && \
8-
pip install "pytype==2021.10.25" && \
8+
pip install "pytype==2021.12.8" && \
99
pytype slack_bolt/

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"pytest-cov>=3,<4",
1818
"Flask-Sockets>=0.2,<1",
1919
"Werkzeug<2", # TODO: support Flask 2.x
20-
"black==21.10b0",
20+
"black==21.12b0",
2121
]
2222

2323
async_test_dependencies = test_dependencies + [

slack_bolt/adapter/falcon/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from datetime import datetime
1+
from datetime import datetime # type: ignore
22
from http import HTTPStatus
33

44
from falcon import Request, Response

slack_bolt/adapter/sanic/async_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from datetime import datetime
1+
from datetime import datetime # type: ignore
22

33
from sanic.request import Request
44
from sanic.response import HTTPResponse

slack_bolt/adapter/tornado/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from datetime import datetime
1+
from datetime import datetime # type: ignore
22

33
from tornado.httputil import HTTPServerRequest
44
from tornado.web import RequestHandler

slack_bolt/context/base_context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# pytype: skip-file
2+
# Note: Since 2021.12.8, the pytype code analyzer does not properly work for this file
3+
14
from logging import Logger
25
from typing import Optional, Tuple
36

0 commit comments

Comments
 (0)