Skip to content

Commit

Permalink
typofix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackaraz committed Dec 12, 2024
1 parent d4fc001 commit e0d6d6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spey_pyhf/helper_functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Helper function for creating and interpreting pyhf inputs"""
import logging
from typing import Dict, Generator, List, Optional, Tuple, Union
from typing import Dict, Iterator, List, Optional, Tuple, Union

__all__ = ["WorkspaceInterpreter"]

Expand Down Expand Up @@ -83,7 +83,7 @@ def __getitem__(self, item):
return self.background_only_model[item]

@property
def channels(self) -> Generator[List[str]]:
def channels(self) -> Iterator[List[str]]:
"""Retreive channel names as iterator"""
return (ch["name"] for ch in self["channels"])

Expand Down

0 comments on commit e0d6d6b

Please sign in to comment.