Skip to content

Commit

Permalink
typecheck parse_requires
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby authored and branchvincent committed Jul 26, 2022
1 parent 328f26b commit 8469cf7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/poetry/core/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from pathlib import Path
from typing import Any
from typing import Iterator
from typing import no_type_check

from packaging.utils import canonicalize_name

Expand All @@ -36,7 +35,6 @@ def temporary_directory(*args: Any, **kwargs: Any) -> Iterator[str]:
safe_rmtree(name)


@no_type_check
def parse_requires(requires: str) -> list[str]:
lines = requires.split("\n")

Expand All @@ -55,7 +53,7 @@ def parse_requires(requires: str) -> list[str]:
# extras or conditional dependencies
marker = line.lstrip("[").rstrip("]")
if ":" not in marker:
extra, marker = marker, None
extra, marker = marker, ""
else:
extra, marker = marker.split(":")

Expand Down

0 comments on commit 8469cf7

Please sign in to comment.