Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(poetry): remove type errors #241

Merged
merged 1 commit into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions poetry/core/poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
if TYPE_CHECKING:
from pathlib import Path

from poetry.core.packages import ProjectPackage # noqa
from poetry.core.pyproject.toml import PyProjectTOML # noqa
from poetry.core.pyproject.toml import PyProjectTOMLFile # noqa
from poetry.core.packages.project_package import ProjectPackage
from poetry.core.pyproject.toml import PyProjectTOML
from poetry.core.toml import TOMLFile


class Poetry(object):
Expand All @@ -20,7 +20,7 @@ def __init__(
local_config: dict,
package: "ProjectPackage",
) -> None:
from poetry.core.pyproject.toml import PyProjectTOML # noqa
from poetry.core.pyproject.toml import PyProjectTOML

self._pyproject = PyProjectTOML(file)
self._package = package
Expand All @@ -31,7 +31,7 @@ def pyproject(self) -> "PyProjectTOML":
return self._pyproject

@property
def file(self) -> "PyProjectTOMLFile":
def file(self) -> "TOMLFile":
return self._pyproject.file

@property
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ module = [
'poetry.core.factory.*',
'poetry.core.masonry.*',
'poetry.core.packages.*',
'poetry.core.poetry.*',
'poetry.core.pyproject.*',
'poetry.core.semver.*',
'poetry.core.spdx.*',
Expand Down