Skip to content

Commit

Permalink
added type annotation to OpacityState getitem
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodot- committed Jul 31, 2024
1 parent 43a9762 commit 401c6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tardis/opacities/opacity_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__(
self.photo_ion_activation_idx = photo_ion_activation_idx
self.k_packet_idx = k_packet_idx

def __getitem__(self, i):
def __getitem__(self, i: slice):
"""Get a shell or slice of shells of the attributes of the opacity state
Args:
Expand Down

0 comments on commit 401c6c5

Please sign in to comment.