Skip to content

Commit

Permalink
chore: fix type annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Nov 16, 2023
1 parent ce49706 commit 8eb8fdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/decaylanguage/dec/dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ def build_decay_chains(
list_dm_details = self._decay_mode_details(dm, display_photos_keyword=False)
d = dict(zip(keys, list_dm_details))

for i, fs in enumerate(d["fs"]): # type: ignore[arg-type, var-annotated]
for i, fs in enumerate(d["fs"]): # type: ignore[arg-type]
if fs in stable_particles:
continue

Expand All @@ -1013,13 +1013,13 @@ def build_decay_chains(
# _n_dms = len(self._find_decay_modes(fs))

_info = self.build_decay_chains(fs, stable_particles)
d["fs"][i] = _info # type: ignore[index]
d["fs"][i] = _info # type: ignore[index,call-overload]
except DecayNotFound:
pass

info.append(d)

return {mother: info} # type: ignore[dict-item]
return {mother: info}

def __repr__(self) -> str:
if self._parsed_dec_file is not None:
Expand Down

0 comments on commit 8eb8fdf

Please sign in to comment.