Skip to content

Commit

Permalink
TR updates, second round
Browse files Browse the repository at this point in the history
  • Loading branch information
lpozo committed Jun 28, 2024
1 parent 0fbfa35 commit b1fdafb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
6 changes: 0 additions & 6 deletions python-protocol/adder_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,9 @@ def add(self, x: float, y: float) -> float:
return x + y


class StrAdder:
def add(self, x: str, y: str) -> str:
return x + y


def add(adder: Adder) -> None:
print(adder.add(2, 3))


add(IntAdder())
add(FloatAdder())
# add(StrAdder())
6 changes: 0 additions & 6 deletions python-protocol/adder_v5.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@ def add(self, x: float, y: float) -> float:
return x + y


class StrAdder:
def add(self, x: str, y: str) -> str:
return x + y


def add(adder: Adder) -> None:
print(adder.add(2, 3))


add(IntAdder())
add(FloatAdder())
add(StrAdder())
2 changes: 1 addition & 1 deletion python-protocol/contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self):
def create_content(self) -> str:
return "Recording a video."

def add_vide(self, title: str, path: str) -> None:
def add_video(self, title: str, path: str) -> None:
self.videos.append(f"{title}: {path}")
print(f"Video added: {title}")

Expand Down

0 comments on commit b1fdafb

Please sign in to comment.