ovld 0.3.5__py3-none-any.whl → 0.3.7__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/core.py CHANGED
@@ -115,6 +115,8 @@ class MultiTypeMap(dict):
115
115
  def transform(self, obj):
116
116
  if isinstance(obj, GenericAlias):
117
117
  return type[obj.__origin__]
118
+ elif obj is typing.Any:
119
+ return type[object]
118
120
  elif isinstance(obj, type):
119
121
  return type[obj]
120
122
  else:
ovld/version.py CHANGED
@@ -1 +1 @@
1
- version = "0.3.5"
1
+ version = "0.3.7"
@@ -1,20 +1,11 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: ovld
3
- Version: 0.3.5
3
+ Version: 0.3.7
4
4
  Summary: Overloading Python functions
5
- Home-page: https://github.com/breuleux/ovld
6
- License: MIT
7
- Author: Olivier Breuleux
8
- Author-email: breuleux@gmail.com
9
- Requires-Python: >=3.8,<4.0
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.12
17
- Project-URL: Repository, https://github.com/breuleux/ovld
5
+ Author-email: Olivier Breuleux <breuleux@gmail.com>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Requires-Python: >=3.8
18
9
  Description-Content-Type: text/markdown
19
10
 
20
11
 
@@ -328,4 +319,3 @@ bad([1], [2])
328
319
  The functions on the stack have names like `bad.entry`, `bad.dispatch`, `bad[list, list]` and `bad[*, *]` (`*` stands for `object`), which lets you better understand what happened just from the stack trace.
329
320
 
330
321
  This also means profilers will be able to differentiate between these paths and between variants, even if they share code paths.
331
-
@@ -0,0 +1,9 @@
1
+ ovld/__init__.py,sha256=Wa7MHfDw0_AV7jwSwepntCeXzZheELkb8paxVnjp58Q,85
2
+ ovld/core.py,sha256=B5j-k5SRPFd1l_zM6XkIK-jWN9FCtQVhtj4URI4oepQ,33210
3
+ ovld/mro.py,sha256=Dof3wj-BLcV-T-Jm9tK6zqptp_JGo5lxgyRq99AvY1k,5006
4
+ ovld/utils.py,sha256=8kINtHrWdC0bNVccxYIkHBaGFk_YFpjtnjAa9GyXNmA,3861
5
+ ovld/version.py,sha256=vQ5YERPWCl1LkgKK8gROTeKmhCPA_uiJJdf7RhPFNXA,18
6
+ ovld-0.3.7.dist-info/METADATA,sha256=dKi-I6cdJNB78-Gof7SnJXddWM4UJofVGJ2dEPpK6AA,9006
7
+ ovld-0.3.7.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
8
+ ovld-0.3.7.dist-info/licenses/LICENSE,sha256=cSwNTIzd1cbI89xt3PeZZYJP2y3j8Zus4bXgo4svpX8,1066
9
+ ovld-0.3.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: hatchling 1.25.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,9 +0,0 @@
1
- ovld/__init__.py,sha256=Wa7MHfDw0_AV7jwSwepntCeXzZheELkb8paxVnjp58Q,85
2
- ovld/core.py,sha256=CshFjuUcDtxhrFh2xFSDte8wNKTbu48xnQEmumKFEiI,33146
3
- ovld/mro.py,sha256=Dof3wj-BLcV-T-Jm9tK6zqptp_JGo5lxgyRq99AvY1k,5006
4
- ovld/utils.py,sha256=8kINtHrWdC0bNVccxYIkHBaGFk_YFpjtnjAa9GyXNmA,3861
5
- ovld/version.py,sha256=M3X4I0aWn4g3ogkdyZ0rLSIZT87vxO8b-C9xRS5wkSk,18
6
- ovld-0.3.5.dist-info/LICENSE,sha256=cSwNTIzd1cbI89xt3PeZZYJP2y3j8Zus4bXgo4svpX8,1066
7
- ovld-0.3.5.dist-info/METADATA,sha256=cO3RiKeqES82nfAiRn-1C0fel4q9AJSZaR6iEilLecg,9439
8
- ovld-0.3.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
9
- ovld-0.3.5.dist-info/RECORD,,