Skip to content

Commit 14f2249

Browse files
committed
Mypy fixes
1 parent 8ecb933 commit 14f2249

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/default.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ jobs:
2323
run: |
2424
pip install poetry
2525
poetry install
26-
- name: Check code base via pylint
26+
- name: Run linting
2727
run: |
2828
poetry run pylint --fail-under 10.0 **/*.py
29+
poetry run mypy .
2930
- name: Build package and check installation process is ok
3031
run: |
3132
poetry build

envcast/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class GenericEnvironmentProcessor:
1818
"""Main class for the app."""
1919

20-
BOOLEAN_VALUES: tuple[str] = ("1", "y", "yes", "true", "ok", "okay", "on", "enabled")
20+
BOOLEAN_VALUES: tuple[str, ...] = ("1", "y", "yes", "true", "ok", "okay", "on", "enabled")
2121
SEPARATORS_FOR_LIST_TYPE: set[str] = {"|", ",", " "}
2222

2323
@abc.abstractmethod
@@ -103,6 +103,7 @@ def set_dotenv_path(
103103
if not self._path_for_dotenv.is_file() or not self._path_for_dotenv.exists():
104104
raise exceptions.IncorrectDotenvPath(str(self._path_for_dotenv))
105105
self._path_for_dotenv = pathlib.Path(full_path).resolve()
106+
return self
106107

107108
@functools.lru_cache(maxsize=None)
108109
def _load_dotenv_file(self) -> dict:

0 commit comments

Comments
 (0)