Skip to content

Commit 2472b08

Browse files
committed
Fix new mypy errors
1 parent 5ff4c32 commit 2472b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xdoctest/static_analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,12 +777,12 @@ def parse_static_calldefs(
777777
try:
778778
# fixme: This might never happen, could clean up this code if we can confirm
779779
with open(fpath, 'rb') as file_:
780-
source = file_.read() # type: ignore[invalid-assignment]
780+
source = file_.read() # type: ignore[invalid-assignment, assignment, arg-type]
781781
except Exception:
782782
print('Unable to read fpath = {!r}'.format(fpath))
783783
raise
784784
try:
785-
self = TopLevelVisitor.parse(source) # type: ignore[invalid-argument-type]
785+
self = TopLevelVisitor.parse(source) # type: ignore[invalid-argument-type, arg-type]
786786
return self.calldefs
787787
except Exception: # nocover
788788
if fpath:

0 commit comments

Comments
 (0)