Skip to content

Commit 924859c

Browse files
committed
Write return annotation correctly
1 parent 418bc01 commit 924859c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pip/_internal/metadata/pep723.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import re
2+
from typing import Any, Dict
23

34
from pip._vendor import tomli as tomllib
45

56
REGEX = r"(?m)^# /// (?P<type>[a-zA-Z0-9-]+)$\s(?P<content>(^#(| .*)$\s)+)^# ///$"
67

78

8-
def pep723_metadata(scriptfile: str) -> dict:
9+
def pep723_metadata(scriptfile: str) -> Dict[str, Any]:
910
with open(scriptfile) as f:
1011
script = f.read()
1112

0 commit comments

Comments
 (0)