Skip to content

Commit

Permalink
general: fix some issues after mypy update
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Aug 24, 2023
1 parent 642e3b1 commit c283e54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions my/core/query_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def _parse_range(
return parsed_range

err_msg = error_message or RangeTuple.__doc__
assert err_msg is not None # make mypy happy
after, before, within = None, None, None

none_count = more_itertools.ilen(filter(lambda o: o is None, list(unparsed_range)))
Expand Down
2 changes: 1 addition & 1 deletion my/instagram/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ def key(r: Res[Message]):
if user is not None:
repls['user'] = user
if len(repls) > 0:
m = replace(m, **repls) # type: ignore[type-var] # ugh mypy is confused because of Protocol?
m = replace(m, **repls) # type: ignore[type-var, misc] # ugh mypy is confused because of Protocol?
mmap[k] = m
yield m

0 comments on commit c283e54

Please # to comment.