Skip to content

Commit

Permalink
chore(poetry): remove type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent authored and neersighted committed Nov 16, 2021
1 parent 3a2784e commit 3b381c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
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 @@ -105,7 +105,6 @@ module = [
'poetry.core.masonry.utils.package_include',
'poetry.core.masonry.metadata',
'poetry.core.packages.*',
'poetry.core.poetry.*',
'poetry.core.pyproject.*',
'poetry.core.semver.*',
'poetry.core.spdx.*',
Expand Down

0 comments on commit 3b381c6

Please sign in to comment.