Skip to content

Commit

Permalink
remove Package.with_python_versions()
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Aug 24, 2022
1 parent c9348e8 commit 5e7464b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/poetry/core/packages/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import copy
import re

from contextlib import contextmanager
from pathlib import Path
from typing import TYPE_CHECKING
from typing import Collection
from typing import Iterable
from typing import Iterator
from typing import TypeVar
from typing import cast

Expand Down Expand Up @@ -531,16 +529,6 @@ def to_dependency(self) -> Dependency:

return dep.with_constraint(self._version)

@contextmanager
def with_python_versions(self, python_versions: str) -> Iterator[None]:
original_python_versions = self.python_versions

self.python_versions = python_versions

yield

self.python_versions = original_python_versions

def satisfies(
self, dependency: Dependency, ignore_source_type: bool = False
) -> bool:
Expand Down

0 comments on commit 5e7464b

Please sign in to comment.