Commit 0d4dff71 by David Hotham Committed by Bjorn Neergaard

Pick off some low-hanging fruit from mypy checks

parent 6c838179
...@@ -28,7 +28,7 @@ ignore_errors = True ...@@ -28,7 +28,7 @@ ignore_errors = True
[mypy-poetry.installation.*] [mypy-poetry.installation.*]
ignore_errors = True ignore_errors = True
[mypy-poetry.locations.*] [mypy-poetry.layouts.*]
ignore_errors = True ignore_errors = True
[mypy-poetry.mixology.*] [mypy-poetry.mixology.*]
...@@ -37,9 +37,6 @@ ignore_errors = True ...@@ -37,9 +37,6 @@ ignore_errors = True
[mypy-poetry.packages.*] [mypy-poetry.packages.*]
ignore_errors = True ignore_errors = True
[mypy-poetry.plugins.*]
ignore_errors = True
[mypy-poetry.publishing.*] [mypy-poetry.publishing.*]
ignore_errors = True ignore_errors = True
......
...@@ -15,7 +15,8 @@ REPOSITORY_CACHE_DIR = Path(CACHE_DIR) / "cache" / "repositories" ...@@ -15,7 +15,8 @@ REPOSITORY_CACHE_DIR = Path(CACHE_DIR) / "cache" / "repositories"
def data_dir() -> Path: def data_dir() -> Path:
if os.getenv("POETRY_HOME"): poetry_home = os.getenv("POETRY_HOME")
return Path(os.getenv("POETRY_HOME")).expanduser() if poetry_home:
return Path(poetry_home).expanduser()
return Path(user_data_dir("pypoetry", roaming=True)) return Path(user_data_dir("pypoetry", roaming=True))
...@@ -19,7 +19,7 @@ class PluginManager: ...@@ -19,7 +19,7 @@ class PluginManager:
def __init__(self, type, disable_plugins=False): # type: (str, bool) -> None def __init__(self, type, disable_plugins=False): # type: (str, bool) -> None
self._type = type self._type = type
self._disable_plugins = disable_plugins self._disable_plugins = disable_plugins
self._plugins = [] self._plugins: List[Plugin] = []
def load_plugins(self): # type: () -> None def load_plugins(self): # type: () -> None
if self._disable_plugins: if self._disable_plugins:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment