ovld 0.3.4__tar.gz → 0.3.5__tar.gz
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-0.3.4 → ovld-0.3.5}/PKG-INFO +1 -1
- {ovld-0.3.4 → ovld-0.3.5}/ovld/core.py +6 -1
- ovld-0.3.5/ovld/version.py +1 -0
- {ovld-0.3.4 → ovld-0.3.5}/pyproject.toml +2 -13
- ovld-0.3.4/ovld/version.py +0 -1
- {ovld-0.3.4 → ovld-0.3.5}/LICENSE +0 -0
- {ovld-0.3.4 → ovld-0.3.5}/README.md +0 -0
- {ovld-0.3.4 → ovld-0.3.5}/ovld/__init__.py +0 -0
- {ovld-0.3.4 → ovld-0.3.5}/ovld/mro.py +0 -0
- {ovld-0.3.4 → ovld-0.3.5}/ovld/utils.py +0 -0
@@ -8,10 +8,15 @@ import typing
|
|
8
8
|
from types import FunctionType
|
9
9
|
|
10
10
|
try:
|
11
|
-
from types import
|
11
|
+
from types import UnionType
|
12
12
|
except ImportError: # pragma: no cover
|
13
13
|
UnionType = None
|
14
14
|
|
15
|
+
|
16
|
+
try:
|
17
|
+
from types import GenericAlias
|
18
|
+
except ImportError: # pragma: no cover
|
19
|
+
|
15
20
|
class GenericAliasMC(type):
|
16
21
|
def __instancecheck__(cls, obj):
|
17
22
|
return hasattr(obj, "__origin__")
|
@@ -0,0 +1 @@
|
|
1
|
+
version = "0.3.5"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "ovld"
|
3
|
-
version = "0.3.
|
3
|
+
version = "0.3.5"
|
4
4
|
description = "Overloading Python functions"
|
5
5
|
authors = ["Olivier Breuleux <breuleux@gmail.com>"]
|
6
6
|
license = "MIT"
|
@@ -12,28 +12,17 @@ repository = "https://github.com/breuleux/ovld"
|
|
12
12
|
python = "^3.8"
|
13
13
|
|
14
14
|
[tool.poetry.dev-dependencies]
|
15
|
-
black = "^24.3.0"
|
16
15
|
ruff = "^0.3.5"
|
17
16
|
codefind = "^0.1.0"
|
18
17
|
pytest = "^6.0.1"
|
19
18
|
pytest-cov = "^2.10.0"
|
20
19
|
|
21
|
-
[tool.black]
|
22
|
-
line-length = 80
|
23
|
-
|
24
|
-
[tool.isort]
|
25
|
-
known_first_party = "ovld"
|
26
|
-
known_third_party = ""
|
27
|
-
multi_line_output = 3
|
28
|
-
include_trailing_comma = true
|
29
|
-
combine_as_imports = true
|
30
|
-
|
31
20
|
[build-system]
|
32
21
|
requires = ["poetry-core>=1.0.8"]
|
33
22
|
build-backend = "poetry.core.masonry.api"
|
34
23
|
|
35
24
|
[tool.ruff]
|
36
|
-
line-length =
|
25
|
+
line-length = 80
|
37
26
|
|
38
27
|
[tool.ruff.lint]
|
39
28
|
extend-select = ["I"]
|
ovld-0.3.4/ovld/version.py
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
version = "0.3.4"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|