Skip to content

Commit 91c72cf

Browse files
authored
Remove dockerfile-parse from pyright's exclude (#9310)
Remove unnecessary dependency on types-six
1 parent 8ac9f1e commit 91c72cf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pyrightconfig.stricter.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"stubs/commonmark",
3131
"stubs/cryptography",
3232
"stubs/dateparser",
33-
"stubs/dockerfile-parse",
3433
"stubs/docutils",
3534
"stubs/Flask-Migrate",
3635
"stubs/Flask-SQLAlchemy",

stubs/dockerfile-parse/METADATA.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
version = "1.2.*"
2-
requires = ["types-six"]
32

43
[tool.stubtest]
54
ignore_missing_stub = false

stubs/dockerfile-parse/dockerfile_parse/util.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ class WordSplitter:
2121
def dequote(self) -> str: ...
2222
def split(self, maxsplit: int | None = ..., dequote: bool = ...) -> Generator[str | None, None, None]: ...
2323

24-
def extract_key_values(env_replace: bool, args: Mapping[str, str], envs: Mapping[str, str], instruction_value: str): ...
24+
def extract_key_values(
25+
env_replace: bool, args: Mapping[str, str], envs: Mapping[str, str], instruction_value: str
26+
) -> list[tuple[str, str]]: ...
2527
def get_key_val_dictionary(
26-
instruction_value, env_replace: bool = ..., args: Mapping[str, str] | None = ..., envs: Mapping[str, str] | None = ...
27-
): ...
28+
instruction_value: str, env_replace: bool = ..., args: Mapping[str, str] | None = ..., envs: Mapping[str, str] | None = ...
29+
) -> dict[str, str]: ...
2830

2931
class Context:
3032
args: MutableMapping[str, str]

0 commit comments

Comments
 (0)