We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 938cce8 commit decd284Copy full SHA for decd284
3 files changed
stubs/portage/portage/package/ebuild/config.pyi
@@ -1,5 +1,5 @@
1
from collections.abc import Mapping
2
-from typing import Literal, TypeVar
+from typing import Any, Literal, TypeVar
3
4
class config:
5
def __init__(
@@ -21,17 +21,17 @@ class config:
21
def __setitem__(self, key: str, value: str) -> None: ...
22
def __delitem__(self, key: str) -> None: ...
23
def __iter__(self) -> str: ...
24
- def get(self, k: str, x=...): ...
+ def get(self, k: str, x: Any = ...) -> Any: ...
25
26
_K = TypeVar("_K")
27
_V = TypeVar("_V")
28
29
def best_from_dict(
30
key: _K,
31
top_dict: Mapping[_K, _V],
32
- key_order,
+ key_order: Any,
33
EmptyOnError: Literal[0, 1] = 1,
34
FullCopy: Literal[0, 1] = 1,
35
AllowEmpty: Literal[0, 1] = 1,
36
) -> Literal[""] | dict[_K, _V]: ...
37
-def autouse(myvartree, use_cache: Literal[0, 1] = 1, mysettings: config | None = None) -> Literal[""]: ...
+def autouse(myvartree: Any, use_cache: Literal[0, 1] = 1, mysettings: config | None = None) -> Literal[""]: ...
stubs/portage/portage/package/ebuild/doebuild.pyi
from _typeshed import Incomplete
-from typing import Literal
+from typing import Any, Literal
from portage.dbapi.porttree import portdbapi
@@ -47,7 +47,7 @@ def doebuild(
47
fetchall: Literal[0, 1] = 0,
48
tree: Literal["vartree", "porttree", "bintree"] | None = None,
49
mydbapi: portdbapi | None = None,
50
- vartree=None,
+ vartree: Any = None,
51
prev_mtimes: dict[str, Incomplete] | None = None,
52
fd_pipes: dict[str, str] | None = None,
53
returnproc: int | bool = False,
stubs/portage/portage/versions.pyi
from typing_extensions import Self
from .package.ebuild.config import config
@@ -21,7 +21,7 @@ class _pkg_str(str):
build_id: str | None = None,
file_size: int | None = None,
mtime: int | None = None,
- db=...,
+ db: Any = ...,
repoconfig=...,
) -> Self: ...
@@ -36,8 +36,8 @@ class _pkg_str(str):
38
39
40
- repoconfig=...,
+ repoconfig: Any = ...,
41
) -> None: ...
42
@staticmethod
43
def _long(var, default: int) -> int: ...
0 commit comments