Commit 33967697 by Daniel Eades Committed by Bjorn Neergaard

remove 'factory' module from mypy whitelist

parent 621e687b
...@@ -136,7 +136,6 @@ module = [ ...@@ -136,7 +136,6 @@ module = [
'poetry.console.commands.source.add', 'poetry.console.commands.source.add',
'poetry.console.commands.update', 'poetry.console.commands.update',
'poetry.console.commands.version', 'poetry.console.commands.version',
'poetry.factory.*',
'poetry.inspection.*', 'poetry.inspection.*',
'poetry.installation.*', 'poetry.installation.*',
'poetry.mixology.assignment', 'poetry.mixology.assignment',
......
...@@ -127,8 +127,8 @@ class Factory(BaseFactory): ...@@ -127,8 +127,8 @@ class Factory(BaseFactory):
) -> None: ) -> None:
for source in sources: for source in sources:
repository = cls.create_legacy_repository(source, config) repository = cls.create_legacy_repository(source, config)
is_default = source.get("default", False) is_default = bool(source.get("default", False))
is_secondary = source.get("secondary", False) is_secondary = bool(source.get("secondary", False))
if io.is_debug(): if io.is_debug():
message = f"Adding repository {repository.name} ({repository.url})" message = f"Adding repository {repository.name} ({repository.url})"
if is_default: if is_default:
......
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