Skip to content

Commit 10a0f43

Browse files
Add intentional pylint issue and mypy issue
1 parent 2fa8be5 commit 10a0f43

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: source/pokemon.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ def _levelUp(self) -> None:
3434
self._health += 10
3535

3636
def attack(self, opponent: "Pokemon") -> None:
37-
"""
38-
Attacks another pokemon by calculating the attack factor.
39-
After the fight, the attacking pokemon receives XP.
40-
"""
4137
if not self._isAlive:
4238
print("Pokemon is dead already!")
4339
elif not opponent.getIsAlive():
@@ -84,7 +80,7 @@ def useHealthPotion(self) -> None:
8480
def getName(self) -> str:
8581
return self._name
8682

87-
def getPokeType(self) -> str:
83+
def getPokeType(self) -> bool:
8884
return self._pokeType
8985

9086
def getHealth(self) -> int:

0 commit comments

Comments
 (0)