Skip to content

Commit fe2ff79

Browse files
committed
Ignore missing return errors
1 parent e70e3cb commit fe2ff79

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ class PDFDocument(Loadable):
12811281
... # Code goes here - omitted for brevity
12821282

12831283
@classmethod
1284-
def load(cls, name: str):
1284+
def load(cls, name: str) -> None:
12851285
"""Load the file from the local filesystem"""
12861286
... # Code goes here - omitted for brevity
12871287

conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ def runtest(self):
6767
_with_patched_sleep(exec, byte_code, builtins)
6868
msg, _, error = api.run(['--no-color-output', '-c', self.spec])
6969
if error:
70+
# Ignore missing return statements
71+
if "Missing return statement" in msg:
72+
return
7073
# Ignore missing errors related to the injected names
7174
for name in builtins:
7275
if f"Name '{name}' is not defined" in msg:

0 commit comments

Comments
 (0)