ovld 0.5.2__py3-none-any.whl → 0.5.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ovld/codegen.py +1 -0
- ovld/core.py +4 -1
- ovld/utils.py +2 -2
- ovld/version.py +1 -1
- {ovld-0.5.2.dist-info → ovld-0.5.3.dist-info}/METADATA +1 -1
- {ovld-0.5.2.dist-info → ovld-0.5.3.dist-info}/RECORD +8 -8
- {ovld-0.5.2.dist-info → ovld-0.5.3.dist-info}/WHEEL +0 -0
- {ovld-0.5.2.dist-info → ovld-0.5.3.dist-info}/licenses/LICENSE +0 -0
ovld/codegen.py
CHANGED
ovld/core.py
CHANGED
@@ -169,7 +169,10 @@ class Ovld:
|
|
169
169
|
else:
|
170
170
|
hlp = ""
|
171
171
|
for c in possibilities:
|
172
|
-
|
172
|
+
hn = getattr(c.handler, "__orig_name__", c.handler.__name__)
|
173
|
+
hlp += (
|
174
|
+
f"* {hn} (priority: {c.priority}, specificity: {list(c.specificity)})\n"
|
175
|
+
)
|
173
176
|
return ResolutionError(
|
174
177
|
f"Ambiguous resolution in {self} for"
|
175
178
|
f" argument types [{typenames}]\n"
|
ovld/utils.py
CHANGED
@@ -106,7 +106,7 @@ def clsstring(cls):
|
|
106
106
|
return f"{origin.__name__}[{args}]"
|
107
107
|
else:
|
108
108
|
r = repr(cls)
|
109
|
-
if r.startswith("<class "):
|
109
|
+
if r.startswith("<class ") or r.startswith("<enum "):
|
110
110
|
return cls.__name__
|
111
111
|
else:
|
112
112
|
return r
|
@@ -160,7 +160,7 @@ class NameDatabase:
|
|
160
160
|
return name
|
161
161
|
|
162
162
|
def get(self, value, suggested_name=None):
|
163
|
-
if
|
163
|
+
if type(value) in (int, float, str):
|
164
164
|
return repr(value)
|
165
165
|
if id(value) in self.names:
|
166
166
|
return self.names[id(value)]
|
ovld/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version = "0.5.
|
1
|
+
version = "0.5.3"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
ovld/__init__.py,sha256=JuCM8Sj65gobV0KYyLr95cSI23Pi6RYZ7X3_F3fdsSw,1821
|
2
2
|
ovld/abc.py,sha256=4qpZyYwI8dWgY1Oiv5FhdKg2uzNcyWxIpGmGJVcjXrs,1177
|
3
|
-
ovld/codegen.py,sha256=
|
4
|
-
ovld/core.py,sha256=
|
3
|
+
ovld/codegen.py,sha256=N8qgnpitPD8HEzNWQqmPw4MmSs3wdMsW9qoMo1jEhps,9247
|
4
|
+
ovld/core.py,sha256=HEREHblKcjM9dhFBr0FNwUCyec7o-9XjCsCfJ23SnNw,17544
|
5
5
|
ovld/dependent.py,sha256=h3j4oQYTQfGqMzggWlLV6TpojX_GtYRFWAO0GcMB0Zs,9085
|
6
6
|
ovld/medley.py,sha256=0fseIntzJRCPYXq-tmnxgy5ipNa4ZxR0D_6So0xstdQ,12729
|
7
7
|
ovld/mro.py,sha256=LXHkP_28J9EwM9IrXYraYI0qm4dHWkDKCgkXn0u_YCo,4655
|
@@ -10,9 +10,9 @@ ovld/recode.py,sha256=ZVqD3sCu_myaFj3lKPCMjFBf1pTdTAAd3NJdsqtLYuU,16434
|
|
10
10
|
ovld/signatures.py,sha256=Q8JucSOun0ESGx14aWtHtBzLEiM6FxY5HP3imyqXoDo,8984
|
11
11
|
ovld/typemap.py,sha256=5Pro1Ee60fH4L7NW7k5nbN5EfDygA0LFHcI6o3mCagI,13596
|
12
12
|
ovld/types.py,sha256=0hkhAR5_5793NABdrM-fP1dSJBhYof85FILKqVP2YMg,13392
|
13
|
-
ovld/utils.py,sha256=
|
14
|
-
ovld/version.py,sha256=
|
15
|
-
ovld-0.5.
|
16
|
-
ovld-0.5.
|
17
|
-
ovld-0.5.
|
18
|
-
ovld-0.5.
|
13
|
+
ovld/utils.py,sha256=MAPQUhZc3_AcLrU4jFQrkVu4nvMJJKiw10N7zFk5QPc,4294
|
14
|
+
ovld/version.py,sha256=9iBSpgY-F4wj0t-upZDlLaji0_l-xTEqXo5_nwN8O1M,18
|
15
|
+
ovld-0.5.3.dist-info/METADATA,sha256=2l6SNs5EFY56D3EvhxubpQ-mXoz21EUPLqcFb3JUeVg,9276
|
16
|
+
ovld-0.5.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
17
|
+
ovld-0.5.3.dist-info/licenses/LICENSE,sha256=cSwNTIzd1cbI89xt3PeZZYJP2y3j8Zus4bXgo4svpX8,1066
|
18
|
+
ovld-0.5.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|