Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfe2ff79

Browse files
committed
Ignore missing return errors
1 parente70e3cb commitfe2ff79

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-
defload(cls,name:str):
1284+
defload(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
iferror:
70+
# Ignore missing return statements
71+
if"Missing return statement"inmsg:
72+
return
7073
# Ignore missing errors related to the injected names
7174
fornameinbuiltins:
7275
iff"Name '{name}' is not defined"inmsg:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp