Skip to content

Commit 84145a1

Browse files
committed
playground mypy
1 parent 2cf75b6 commit 84145a1

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

playground/mypy.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
PLAYGROUND_PATH=$(dirname "$(realpath "$0")")
6+
. $PLAYGROUND_PATH/env.sh
7+
8+
export MYPYPATH=$PYTHONPATH
9+
10+
exec $PYTHON -m mypy "$@"

src_py/hat/util/sqlite3.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ def sqlite3_convert_timestamp(val: bytes) -> datetime.datetime:
4646
else:
4747
tz = None
4848

49-
val = datetime.datetime(year, month, day, hours, minutes, seconds,
50-
microseconds, tz)
51-
return val
49+
dt = datetime.datetime(year, month, day, hours, minutes, seconds,
50+
microseconds, tz)
51+
return dt

0 commit comments

Comments
 (0)