Commit 8f033f52 authored by Martin Mareš's avatar Martin Mareš
Browse files

Objekty: Oprava překlepů

parent fd469ed0
...@@ -132,7 +132,7 @@ False ...@@ -132,7 +132,7 @@ False
hroch = Zvire("Hippo", "Humpf!")\\ hroch = Zvire("Hippo", "Humpf!")\\
hroch hroch
}{% }{%
Pes(Hippo, Humpf!) Zvire(Hippo, Humpf!)
} }
\py{% \py{%
......
...@@ -17,7 +17,7 @@ class Zvire: ...@@ -17,7 +17,7 @@ class Zvire:
return self.jmeno return self.jmeno
def __repr__(self): def __repr__(self):
return f"Pes({self.jmeno}, {self.zvuk})" return f"Zvire({self.jmeno}, {self.zvuk})"
def __eq__(self, other): def __eq__(self, other):
return self.jmeno == other.jmeno and \ return self.jmeno == other.jmeno and \
......
...@@ -7,4 +7,4 @@ class Zvire: ...@@ -7,4 +7,4 @@ class Zvire:
return self.jmeno return self.jmeno
def __repr__(self): def __repr__(self):
return f"Pes({self.jmeno}, {self.zvuk})" return f"Zvire({self.jmeno}, {self.zvuk})"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment