We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assignment functions whose last statement is a compound statement should return the value of the final expression of the active code path.
def f(x)= if x: # some code x+1 else: 0 def f(x)= match x: case 0: -1 case _: x def f(x)= with open(x, "r"): x.read()
Compiles to (3.10):
def f(x): if x: # some code return x+1 else: return 0 def f(x): match x: case 0: return -1 case _: return x def f(x): with open(x, "r"): return x.read()
The text was updated successfully, but these errors were encountered:
Closing as duplicate of #190.
Sorry, something went wrong.
No branches or pull requests
Assignment functions whose last statement is a compound statement should return the value of the final expression of the active code path.
Compiles to (3.10):
The text was updated successfully, but these errors were encountered: