File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1087,10 +1087,7 @@ def byte_buf_to_str_buf(byte_buf: UserSubmittedBytes) -> codecs.StreamReader:
1087
1087
logger .warning ("unable to detect charset, assuming utf-8" )
1088
1088
encoding = "utf-8"
1089
1089
Reader = codecs .getreader (encoding )
1090
- # FIXME: the issue here seems to be that StreamReader is typed to want
1091
- # specifically an IO[bytes] but will actually work with other things that
1092
- # are file-like enough
1093
- return Reader (byte_buf ) # type: ignore
1090
+ return Reader (byte_buf )
1094
1091
1095
1092
1096
1093
def set_current_user_for_session (user : User , session : Optional [Any ] = None ) -> None :
Original file line number Diff line number Diff line change 1
1
[mypy]
2
- python_version = 3.7
2
+ # work around https://github.com/python/mypy/issues/13627
3
+ # (3.7 would be preferred)
4
+ python_version = 3.8
5
+
3
6
plugins = sqlmypy
4
7
check_untyped_defs = True
5
8
no_implicit_optional = True
Original file line number Diff line number Diff line change 8
8
"black==22.3.0" ,
9
9
"bpython~=0.22.1" ,
10
10
"feedparser==6.0.2" ,
11
- "mypy==0.910 " ,
11
+ "mypy==0.982 " ,
12
12
"pandas==1.3.5" ,
13
13
"pytest-flask==1.2.0" ,
14
14
"pytest==7.1.1" ,
You can’t perform that action at this time.
0 commit comments