Skip to content

Commit 5f37280

Browse files
committed
[portage] fix method locations
1 parent b9a07ae commit 5f37280

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

stubs/portage/portage/dbapi/__init__.pyi

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,4 @@ class dbapi:
2929
mytree: str | None = ...,
3030
myrepo: str | None = ...,
3131
) -> list[str]: ...
32-
def xmatch(
33-
self,
34-
level: Literal[
35-
"bestmatch-visible",
36-
"match-all-cpv-only",
37-
"match-all",
38-
"match-visible",
39-
"minimum-all",
40-
"minimum-visible",
41-
"minimum-all-ignore-profile",
42-
],
43-
origdep: str,
44-
) -> list[str] | str: ...
45-
def findname(self, mycpv: str, mytree: str | None = ..., myrepo: str | None = ...) -> str: ...
46-
def findname2(
47-
self, mycpv: str, mytree: str | None = ..., myrepo: str | None = ...
48-
) -> tuple[None, Literal[0]] | tuple[str, str] | tuple[str, None]: ...
4932
def match(self, mydep: str, use_cache: Literal[0, 1] = ...) -> list[str] | str: ...

stubs/portage/portage/dbapi/porttree.pyi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ class portdbapi(dbapi):
66
def getFetchMap(
77
self, mypkg: str, useflags: Sequence[str] | None = ..., mytree: str | None = ...
88
) -> dict[str, tuple[str, ...]]: ...
9+
def xmatch(
10+
self,
11+
level: Literal[
12+
"bestmatch-visible",
13+
"match-all-cpv-only",
14+
"match-all",
15+
"match-visible",
16+
"minimum-all",
17+
"minimum-visible",
18+
"minimum-all-ignore-profile",
19+
],
20+
origdep: str,
21+
) -> list[str] | str: ...
22+
def findname(self, mycpv: str, mytree: str | None = ..., myrepo: str | None = ...) -> str: ...
23+
def findname2(
24+
self, mycpv: str, mytree: str | None = ..., myrepo: str | None = ...
25+
) -> tuple[None, Literal[0]] | tuple[str, str] | tuple[str, None]: ...
926

1027
class portagetree:
1128
dbapi: portdbapi

0 commit comments

Comments
 (0)