We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ff4c32 commit 2472b08Copy full SHA for 2472b08
src/xdoctest/static_analysis.py
@@ -777,12 +777,12 @@ def parse_static_calldefs(
777
try:
778
# fixme: This might never happen, could clean up this code if we can confirm
779
with open(fpath, 'rb') as file_:
780
- source = file_.read() # type: ignore[invalid-assignment]
+ source = file_.read() # type: ignore[invalid-assignment, assignment, arg-type]
781
except Exception:
782
print('Unable to read fpath = {!r}'.format(fpath))
783
raise
784
785
- self = TopLevelVisitor.parse(source) # type: ignore[invalid-argument-type]
+ self = TopLevelVisitor.parse(source) # type: ignore[invalid-argument-type, arg-type]
786
return self.calldefs
787
except Exception: # nocover
788
if fpath:
0 commit comments