Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Liesegang committed Feb 27, 2024
1 parent 73aafa1 commit c79340b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coc7e_combat_simulator/character.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List
from typing import List, Union
import random

from .strategies.reaction import NothingReactionStrategy
Expand Down Expand Up @@ -70,7 +70,7 @@ def add_skill(self, skill: Skill) -> None:
raise ValueError("skill must be an instance of Skill")
self.skills.append(skill)

def get_skill(self, skill_name: str) -> Skill | None:
def get_skill(self, skill_name: str) -> Union[Skill, None]:
for skill in self.skills:
if skill.name == skill_name:
return skill
Expand Down

0 comments on commit c79340b

Please sign in to comment.