aboutcode-org / aboutcode-org/pip-requirements-parser

`RequirementsFile.from_string()` results in `NameError: name 'Path' is not defined`

Aberta
#16 2 comentários 3 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
20
Forks
13
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

I get this error when calling `RequirementsFile.from_string()`:

```py
File "/..../venv/lib/python3.9/site-packages/pip_requirements_parser.py", line 269, in from_string
tmpdir = Path(str(tempfile.mkdtemp()))
NameError: name 'Path' is not defined
```

I think the code needs `from pathlib import Path`.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.