-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpkg.generated.mbti
More file actions
169 lines (126 loc) · 3.4 KB
/
Copy pathpkg.generated.mbti
File metadata and controls
169 lines (126 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
// Generated using `moon info`, DON'T EDIT IT
package "python123/moondepsolve"
// Values
pub fn build_conflict_report(DepError, Registry) -> ConflictReport?
pub fn build_dependency_graph(Array[Dependency], Resolution) -> DependencyGraph
pub fn compare_version(Version, Version) -> Int
pub fn default_upgrade_options(UpgradeStrategy) -> UpgradeOptions
pub fn format_conflict_report(ConflictReport) -> String
pub fn format_error(DepError) -> String
pub fn format_graph_dot(DependencyGraph) -> String
pub fn format_graph_text(DependencyGraph) -> String
pub fn format_lock(Resolution) -> String
pub fn format_upgrade_error(UpgradeError) -> String
pub fn format_upgrade_plan(UpgradePlan) -> String
pub fn format_version(Version) -> String
pub fn matches(Version, VersionReq) -> Bool
pub fn parse_lock(String) -> Result[Resolution, DepError]
pub fn parse_registry(String) -> Result[Registry, DepError]
pub fn parse_req(String) -> Result[VersionReq, DepError]
pub fn parse_version(String) -> Result[Version, DepError]
pub fn plan_upgrade(Array[Dependency], Resolution, Registry, UpgradeOptions) -> Result[UpgradePlan, UpgradeError]
pub fn resolve(Array[Dependency], Registry) -> Result[Resolution, DepError]
// Errors
// Types and methods
pub(all) struct Comparator {
op : CompareOp
version : Version
} derive(Eq)
pub(all) enum CompareOp {
Eq
Gt
Gte
Lt
Lte
} derive(Eq)
pub(all) enum ConflictKind {
MissingPackage
NoMatchingVersion
SelectedVersionConflict
} derive(Eq)
pub(all) struct ConflictReport {
kind : ConflictKind
package_name : String
requirement : String?
selected_version : String?
dependency_path : String?
available_versions : Array[Version]
} derive(Eq)
pub(all) enum DepError {
InvalidVersion(String, String)
InvalidReq(String, String)
PackageNotFound(String)
NoMatchingVersion(String, String)
VersionConflict(String, String, String, String)
} derive(Eq)
pub(all) struct Dependency {
name : String
req : VersionReq
} derive(Eq)
pub(all) struct DependencyEdge {
from : GraphNode
to : GraphNode
requirement : String
} derive(Eq)
pub(all) struct DependencyGraph {
nodes : Array[GraphNode]
edges : Array[DependencyEdge]
} derive(Eq)
pub(all) enum GraphNode {
Root
Package(String, Version)
Unresolved(String)
} derive(Eq)
pub(all) struct PackageVersion {
name : String
version : Version
dependencies : Array[Dependency]
} derive(Eq)
pub(all) struct Registry {
packages : Array[PackageVersion]
} derive(Eq)
pub(all) struct Resolution {
packages : Array[PackageVersion]
} derive(Eq)
pub(all) struct UpgradeChange {
kind : UpgradeChangeKind
package_name : String
from_version : Version?
to_version : Version?
} derive(Eq)
pub(all) enum UpgradeChangeKind {
Add
Remove
Upgrade
Downgrade
} derive(Eq)
pub(all) enum UpgradeError {
DependencyFailure(DepError)
InvalidSearchLimit(Int)
SearchLimitExceeded(Int)
} derive(Eq)
pub(all) struct UpgradeOptions {
strategy : UpgradeStrategy
max_states : Int
} derive(Eq)
pub(all) struct UpgradePlan {
strategy : UpgradeStrategy
resolution : Resolution
changes : Array[UpgradeChange]
} derive(Eq)
pub(all) enum UpgradeStrategy {
HighestCompatible
MinimalChange
} derive(Eq)
pub(all) struct Version {
major : Int
minor : Int
patch : Int
prerelease : String?
} derive(Eq)
pub(all) struct VersionReq {
raw : String
comparators : Array[Comparator]
} derive(Eq)
// Type aliases
// Traits