Skip to content

Commit

Permalink
fix type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed May 8, 2021
1 parent 2627f79 commit be2de80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/idom/_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
logger = getLogger(__name__)


ALL_OPTIONS: WeakSet[Option] = WeakSet()
ALL_OPTIONS: WeakSet[Option[Any]] = WeakSet()


class Option(Generic[_O]):
Expand Down
4 changes: 2 additions & 2 deletions src/idom/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"""

from pathlib import Path
from typing import List, cast
from typing import Any, List, cast

from . import _option


def all_options() -> List[_option.Option]:
def all_options() -> List[_option.Option[Any]]:
"""Get a list of all options"""
return list(_option.ALL_OPTIONS)

Expand Down

0 comments on commit be2de80

Please sign in to comment.