Skip to content

Commit cd9dd3a

Browse files
committed
fix(types): resolve mypy errors in config.py
1 parent d0e9993 commit cd9dd3a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/trueentropy/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from __future__ import annotations
2828

2929
from dataclasses import dataclass
30+
from typing import Any, Literal
3031

3132
# -----------------------------------------------------------------------------
3233
# Source Metadata
@@ -136,7 +137,7 @@ def disabled_sources(self) -> set[str]:
136137
Returns:
137138
Set of disabled source names
138139
"""
139-
return ALL_SOURCES - self.enabled_sources
140+
return set(ALL_SOURCES - self.enabled_sources)
140141

141142
# -------------------------------------------------------------------------
142143
# Methods
@@ -166,7 +167,7 @@ def get_source_info(self, source: str) -> dict[str, bool]:
166167
"requires_network": source in NETWORK_SOURCES,
167168
}
168169

169-
def copy(self, **changes) -> TrueEntropyConfig:
170+
def copy(self, **changes: Any) -> TrueEntropyConfig:
170171
"""
171172
Create a copy of this config with optional changes.
172173

0 commit comments

Comments
 (0)