Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add some more return annotations
Co-authored-by: Nikita Sobolev <[email protected]>
  • Loading branch information
AlexWaygood and sobolevn authored May 12, 2023
commit 510e08bd90f5d8c3566a5d1d0b3b38494e8bc23f
4 changes: 2 additions & 2 deletions Tools/clinic/cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ def close(self):
if self.stack:
self.fail("Ended file while still in a preprocessor conditional block!")

def write(self, s: str):
def write(self, s: str) -> None:
for line in s.split("\n"):
self.writeline(line)

def writeline(self, line: str):
def writeline(self, line: str) -> None:
self.line_number += 1
line = line.strip()

Expand Down