diff --git a/src/idom/_option.py b/src/idom/_option.py index 5f74a4378..728af38d1 100644 --- a/src/idom/_option.py +++ b/src/idom/_option.py @@ -15,7 +15,7 @@ logger = getLogger(__name__) -ALL_OPTIONS: WeakSet[Option] = WeakSet() +ALL_OPTIONS: WeakSet[Option[Any]] = WeakSet() class Option(Generic[_O]): diff --git a/src/idom/config.py b/src/idom/config.py index e7872d453..badcdbd0b 100644 --- a/src/idom/config.py +++ b/src/idom/config.py @@ -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)