Skip to content

Commit 95c50e3

Browse files
committed
fix(BaseConfig): mypy error
1 parent 28ac03b commit 95c50e3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

commitizen/config/base_config.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,11 @@ def settings(self) -> Settings:
2626
return self._settings
2727

2828
@property
29-
def path(self) -> Path | None:
30-
return self._path
29+
def path(self) -> Path:
30+
return self._path # type: ignore
3131

3232
@path.setter
3333
def path(self, path: str | Path) -> None:
34-
"""
35-
mypy does not like this until 1.16
36-
See https://github.com/python/mypy/pull/18510
37-
TODO: remove "type: ignore" from the call sites when 1.16 is available
38-
"""
3934
self._path = Path(path)
4035

4136
def set_key(self, key: str, value: Any) -> Self:

0 commit comments

Comments
 (0)