Skip to content

Commit be2de80

Browse files
committed
fix type annotations
1 parent 2627f79 commit be2de80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/idom/_option.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
logger = getLogger(__name__)
1616

1717

18-
ALL_OPTIONS: WeakSet[Option] = WeakSet()
18+
ALL_OPTIONS: WeakSet[Option[Any]] = WeakSet()
1919

2020

2121
class Option(Generic[_O]):

src/idom/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"""
88

99
from pathlib import Path
10-
from typing import List, cast
10+
from typing import Any, List, cast
1111

1212
from . import _option
1313

1414

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

0 commit comments

Comments
 (0)